Class ItemsTraverser<T>
Represents a traverser that enumerates System.Collections.IList collection.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class ItemsTraverser<T> : ITraverser<T>, IEnumerator<T>, IDisposable, IEnumerator, IEnumerable where T : class
Type Parameters
T
|
Constructors
ItemsTraverser(IList<T>)
Initializes a new instance of the ItemsTraverser<T> class.
Declaration
public ItemsTraverser(IList<T> collection)
Parameters
System.Collections.Generic.IList<T>
collection
The collection. |
Fields
enumerator
Properties
Collection
Gets or sets the collection.
Declaration
public IList<T> Collection { get; set; }
Property Value
System.Collections.Generic.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. |
Implements
InternalCurrent
Declaration
protected T InternalCurrent { get; set; }
Property Value
T
|
InternalPosition
Declaration
protected int InternalPosition { get; set; }
Property Value
System.Int32
|
Position
Gets or sets the position.
Declaration
public object Position { get; set; }
Property Value
System.Object
The position. |
Implements
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Enumerator_ItemsNavigating(Object, ItemsNavigatingEventArgs<T>)
GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
public virtual IEnumerator GetEnumerator()
Returns
System.Collections.IEnumerator
An System.Collections.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
System.Boolean
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.
Declaration
protected virtual bool MoveNextCore()
Returns
System.Boolean
|
MovePrevious()
Moves the previous.
Declaration
public bool MovePrevious()
Returns
System.Boolean
|
Implements
MovePreviousCore()
Moves the previous core.
Declaration
protected virtual bool MovePreviousCore()
Returns
System.Boolean
|
MoveToEnd()
Moves to end.
Declaration
public bool MoveToEnd()
Returns
System.Boolean
|
Implements
OnItemsNavigating(T)
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public void Reset()
Implements
Events
ItemsNavigating
Explicit Interface Implementations
IEnumerator.Current
Gets the element in the collection at the current position of the enumerator.
Declaration
object IEnumerator.Current { get; }
Returns
System.Object
The element in the collection at the current position of the enumerator. |