New to Telerik UI for WinFormsStart a free 30-day trial

Enumerator for the visual row elements.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class VisualRowsCollection.VisualRowsCollectionEnumerator : IDisposable, IEnumerator

Inheritance: objectVisualRowsCollection.VisualRowsCollectionEnumerator

Implements: IDisposableIEnumerator

Constructors

Initializes a new instance of the VisualRowsCollection.VisualRowsCollectionEnumerator class.

C#
public VisualRowsCollectionEnumerator(VisualRowsCollection collection)
Parameters:collectionVisualRowsCollection

The visual rows collection.

Properties

Gets the element in the collection at the current position of the enumerator.

C#
public GridRowElement Current { get; }
Property Value:

The element in the collection at the current position of the enumerator.

Methods

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Advances the enumerator to the next element of the collection.

C#
public bool MoveNext()
Returns:

bool

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Exceptions:

InvalidOperationException

The collection was modified after the enumerator was created.

Implements: IEnumerator.MoveNext()

Sets the enumerator to its initial position, which is before the first element in the collection.

C#
public void Reset()
Exceptions:

InvalidOperationException

The collection was modified after the enumerator was created.

Implements: IEnumerator.Reset()