Class BrakeAxesEnumerator
Auxiliary object that implements enumerator for the AXESBRAKE's axes states list and allows to use foreach syntax.
Inheritance
object
BrakeAxesEnumerator
Implements
System.Collections.IEnumerator
Namespace: DotnetPostprocessing.SDK
Assembly: DotnetPostprocessing.SDK.dll
Syntax
public class BrakeAxesEnumerator : Object, IEnumerator
Constructors
BrakeAxesEnumerator(ICLDAxesBrakeCommand)
Creates a new axes brake states enumerator object for the specified command.
Declaration
public BrakeAxesEnumerator(ICLDAxesBrakeCommand Cmd)
Parameters
Type | Name | Description |
---|---|---|
ICLDAxesBrakeCommand | Cmd | AXESBRAKE command to enumerate the axes |
Methods
MoveNext()
Makes the next axis in the list current if the end of the list has not yet been reached.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
bool | Returns "false" if it is impossible to change the current position of the enumerator, since the end of the list has already been reached. |
Reset()
Reset current position of the enumerator to the initial state.
Declaration
public void Reset()
Implements
System.Collections.IEnumerator