Class SearchNodeArray.Enumerator
The node search enumerator.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class Enumerator : IEnumerator
Constructors
Enumerator(SearchNodeArray)
Initializes a new instance of the SearchNodeArray.Enumerator class.
Declaration
public Enumerator(SearchNodeArray tc)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchNodeArray | tc | The search node array. |
Properties
Current
Gets the current element in the collection.
Declaration
public SearchNode Current { get; }
Property Value
| Type |
|---|
| SearchNode |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The enumerator is positioned before the first element of the collection or after the last element.-or- The collection was modified after the enumerator was created. |
Methods
MoveNext()
Advances the enumerator to the next element of the collection.
Declaration
public bool MoveNext()
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The collection was modified after the enumerator was created. |
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public void Reset()
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The collection was modified after the enumerator was created. |
Explicit Interface Implementations
IEnumerator.Current
Gets the current element in the collection.
Declaration
object IEnumerator.Current { get; }
Returns
| Type |
|---|
| System.Object |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The enumerator is positioned before the first element of the collection or after the last element.-or- The collection was modified after the enumerator was created. |