ItemsTraverser<T>
Represents a traverser that enumerates IList collection.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
Syntax:
public class ItemsTraverser<T> : ITraverser<T>, IDisposable, IEnumerator, IEnumerable where T : class
Inheritance: objectItemsTraverser<T>
Derived Classes:
Implements:
Constructors
Initializes a new instance of the ItemsTraverser<T> class.
public ItemsTraverser(IList<T> collection)
The collection.
Fields
protected ItemsTraverser<T> enumerator
Properties
Collection
IList<T>
Gets or sets the collection.
public IList<T> Collection { get; set; }
The collection.
Gets the element in the collection at the current position of the enumerator.
public T Current { get; }
The element in the collection at the current position of the enumerator.
protected T InternalCurrent { get; set; }
protected int InternalPosition { get; set; }
Methods
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Implements:
protected void Enumerator_ItemsNavigating(object sender, ItemsNavigatingEventArgs<T> e)
Returns an enumerator that iterates through a collection.
public virtual IEnumerator GetEnumerator()
An IEnumerator object that can be used to iterate through the collection.
Implements:
Advances the enumerator to the next element of the collection.
public virtual bool MoveNext()
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.
Implements:
Moves the next core.
Moves the previous.
Moves the previous core.
Moves to end.
Called when items are navigated.
Sets the enumerator to its initial position, which is before the first element in the collection.
public void Reset()
Implements:
Events
Occurs when items are navigated.
public event ItemsNavigatingEventHandler<T> ItemsNavigating