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
Inherited Members
Namespace: SprutTechnology.SCPostprocessor
Assembly: SCPostprocessor.dll
Syntax
public class NCBlockWordsEnumerator : IEnumerable, IEnumerator
Constructors
NCBlockWordsEnumerator(NCBlock, Boolean, Boolean)
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. |
System.Boolean | marked | If it is true then only Marked words will be enumerated. |
System.Boolean | 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 |
---|---|
System.Boolean | 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()
Explicit Interface Implementations
IEnumerator.Current
Declaration
object IEnumerator.Current { get; }
Returns
Type | Description |
---|---|
System.Object |