Class TreeNodesEnumerator
Represents a class that process the enumerator of TreeNodes in view.
Inheritance
System.Object
TreeNodesEnumerator
Implements
System.Collections.Generic.IEnumerator<TreeNode>
System.Collections.IEnumerator
System.IDisposable
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class TreeNodesEnumerator : Object, IEnumerator<TreeNode>, IEnumerator, IDisposable
Constructors
TreeNodesEnumerator(TreeNodes)
Initializes a new instance of TreeNodesEnumerator class.
Declaration
public TreeNodesEnumerator(TreeNodes nodes)
Parameters
Type | Name | Description |
---|---|---|
TreeNodes | nodes |
Properties
Current
Gets the element in the collection at the current position of the enumerator.
Declaration
public TreeNode Current { get; }
Property Value
Type |
---|
TreeNode |
RootNodes
Gets or sets the RootNodes.
Declaration
public TreeNodes RootNodes { get; }
Property Value
Type |
---|
TreeNodes |
Methods
Dispose()
Disposes all the resources used by the TreeNodesEnumerator class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the TreeNodesEnumerator class.
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. |
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. |
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public void Reset()
Implements
System.Collections.Generic.IEnumerator<>
System.Collections.IEnumerator
System.IDisposable