ItemsTraverser<T>
Represents a traverser that enumerates an IList<T> collection.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
The reference type of the items in the collection.
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
Caches the separate traverser used by GetEnumerator() to enumerate from this traverser's current position.
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.
Gets or sets the current item without changing the stored collection position.
protected T InternalCurrent { get; set; }
Gets or sets the stored collection position without changing the current item.
protected int InternalPosition { get; set; }
Methods
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Implements:
Forwards an enumerator's item notification through this traverser's ItemsNavigating event.
protected void Enumerator_ItemsNavigating(object sender, ItemsNavigatingEventArgs<T> e)
The enumerator raising the notification.
eItemsNavigatingEventArgs<T>The item being examined and whether it should be skipped.
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