Class
ItemsTraverser<T>

Represents a traverser that enumerates IList collection.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Type Parameters:

T

Syntax:

cs-api-definition
public class ItemsTraverser<T> : ITraverser<T>, IDisposable, IEnumerator, IEnumerable where T : class

Inheritance: objectItemsTraverser<T>

Derived Classes: CheckedItemTraverserGanttViewTextViewColumnTraverserPinnedColumnTraverser

Implements: IDisposableIEnumerableIEnumeratorITraverser<T>

Constructors

ItemsTraverser(IList<T>)

Initializes a new instance of the ItemsTraverser<T> class.

Declaration

cs-api-definition
public ItemsTraverser(IList<T> collection)

Parameters

collection

IList<T>

The collection.

Fields

enumerator

Declaration

cs-api-definition
protected ItemsTraverser<T> enumerator

Field Value

ItemsTraverser<T>

Properties

Collection

Gets or sets the collection.

Declaration

cs-api-definition
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

cs-api-definition
public T Current { get; }

Property Value

T

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

InternalCurrent

Declaration

cs-api-definition
protected T InternalCurrent { get; set; }

Property Value

T

InternalPosition

Declaration

cs-api-definition
protected int InternalPosition { get; set; }

Property Value

int

Position

Gets or sets the position.

Declaration

cs-api-definition
public object Position { get; set; }

Property Value

object

The position.

Implements ITraverser<T>.Position

Methods

Dispose()

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

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

Enumerator_ItemsNavigating(object, ItemsNavigatingEventArgs<T>)

Declaration

cs-api-definition
protected void Enumerator_ItemsNavigating(object sender, ItemsNavigatingEventArgs<T> e)

Parameters

sender

object

e

ItemsNavigatingEventArgs<T>

GetEnumerator()

Returns an enumerator that iterates through a collection.

Declaration

cs-api-definition
public virtual IEnumerator GetEnumerator()

Returns

IEnumerator

An IEnumerator object that can be used to iterate through the collection.

Implements IEnumerable.GetEnumerator()

MoveNext()

Advances the enumerator to the next element of the collection.

Declaration

cs-api-definition
public virtual 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.

Implements IEnumerator.MoveNext()

MoveNextCore()

Moves the next core.

Declaration

cs-api-definition
protected virtual bool MoveNextCore()

Returns

bool

MovePrevious()

Moves the previous.

Declaration

cs-api-definition
public bool MovePrevious()

Returns

bool

Implements ITraverser<T>.MovePrevious()

MovePreviousCore()

Moves the previous core.

Declaration

cs-api-definition
protected virtual bool MovePreviousCore()

Returns

bool

MoveToEnd()

Moves to end.

Declaration

cs-api-definition
public bool MoveToEnd()

Returns

bool

Implements ITraverser<T>.MoveToEnd()

OnItemsNavigating(T)

Called when items are navigated.

Declaration

cs-api-definition
protected virtual bool OnItemsNavigating(T current)

Parameters

current

T

The current.

Returns

bool

Reset()

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

Declaration

cs-api-definition
public void Reset()

Implements IEnumerator.Reset()

Events

ItemsNavigating

Occurs when items are navigated.

Declaration

cs-api-definition
public event ItemsNavigatingEventHandler<T> ItemsNavigating

Event Value

ItemsNavigatingEventHandler<T>