Class NCBlockWordsEnumerator
Auxiliary object that can enumerate the registers (NCWord) of an NCBlock. Using it you can easily loop through the registers with foreach cycle. Usually you don't need to create it manually because it is created automatically when you try to use for example the "foreach" cycle with an NCBlock.
Inheritance
Implements
Namespace: SprutCAMTech.SCPostprocessor
Assembly: SprutCAMTech.SCPostprocessor.dll
Syntax
public class NCBlockWordsEnumerator : Object, IEnumerable, IEnumerator
Constructors
NCBlockWordsEnumerator(NCBlock, bool, bool)
Initializes a new instance of NCBlockWordsEnumerator.
Declaration
public NCBlockWordsEnumerator(NCBlock block, bool marked, bool unmarked)
Parameters
Type | Name | Description |
---|---|---|
NCBlock | block | The NCBlock the words of which it should enumerate. |
bool | marked | If it is true then only Marked words will be enumerated. |
bool | unmarked | If it is true then only non Marked words will be enumerated. |
Methods
GetEnumerator()
Return "this" instance as an IEnumerator.
Declaration
public IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
MoveNext()
Tries to move the current position of the enumerator to the next item.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
bool | Returns "true" if the position has been increased to the next item. Returns "false" if there is no next item in the list to be possible to move. |
Reset()
Resets the position of the enumerator to an initial state.
Declaration
public void Reset()