ClassItemsTraverser<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
ItemsTraverser(IList<T>)
Initializes a new instance of the ItemsTraverser<T> class.
Declaration
public ItemsTraverser(IList<T> collection)
Parameters
collection
IList<T>
The collection.
Fields
Properties
Collection
Gets or sets the collection.
Declaration
public IList<T> Collection { get; set; }
Property Value
IList<T>
The collection.
Current
Gets the element in the collection at the current position of the enumerator.
Declaration
public T Current { get; }
Property Value
T
The element in the collection at the current position of the enumerator.
InternalCurrent
Declaration
protected T InternalCurrent { get; set; }
Property Value
T
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Enumerator_ItemsNavigating(object, ItemsNavigatingEventArgs<T>)
Declaration
protected void Enumerator_ItemsNavigating(object sender, ItemsNavigatingEventArgs<T> e)
Parameters
sender
e
GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
public virtual IEnumerator GetEnumerator()
Returns
An IEnumerator object that can be used to iterate through the collection.
Implements
MoveNext()
Advances the enumerator to the next element of the collection.
Declaration
public virtual bool MoveNext()
Returns
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.
Implements
MoveNextCore()
Moves the next core.
MovePrevious()
Moves the previous.
MovePreviousCore()
Moves the previous core.
MoveToEnd()
Moves to end.
OnItemsNavigating(T)
Called when items are navigated.
Declaration
protected virtual bool OnItemsNavigating(T current)
Parameters
current
T
The current.
Returns
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public void Reset()
Implements
Events
ItemsNavigating
Occurs when items are navigated.
Declaration
public event ItemsNavigatingEventHandler<T> ItemsNavigating
Event Value