New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.Collections.Generic

Assembly:Telerik.WinControls.dll

Type Parameters:

T

Syntax:

C#
public abstract class Index<T> : IReadOnlyCollection<T>, IEnumerable where T : IDataItem

Inheritance: objectIndex<T>

Derived Classes: AvlIndex<T>HybridIndex<T>ListIndex<T>RBTreeIndex<T>

Implements: IEnumerableIReadOnlyCollection<T>

Constructors

C#
public Index(RadCollectionView<T> collectionView)
Parameters:collectionViewRadCollectionView<T>

Properties

C#
public RadCollectionView<T> CollectionView { get; }

Gets the count.

C#
public int Count { get; }
Property Value:

The count.

Implements: IReadOnlyCollection<T>.Count

Items

IList<T>

C#
public abstract IList<T> Items { get; }

Gets the item at the specified index.

C#
public T this[int index] { get; }
Parameters:indexint

Implements: IReadOnlyCollection<T>.this[int]

Methods

Determines whether [contains] [the specified value].

C#
public bool Contains(T value)
Parameters:valueT

The value.

Returns:

bool

true if [contains] [the specified value]; otherwise, false.

Implements: IReadOnlyCollection<T>.Contains(T)

Copies to.

C#
public void CopyTo(T[] array, int index)
Parameters:arrayT[]

The array.

indexint

The index.

Implements: IReadOnlyCollection<T>.CopyTo(T[], int)

C#
public IEnumerator<T> GetEnumerator()
Returns:

IEnumerator<T>

C#
public virtual int GetItemPageIndex(T item)
Parameters:itemTReturns:

int

C#
public virtual IList<T> GetItemsOnPage(int pageIndex)
Parameters:pageIndexintReturns:

IList<T>

Indexes the of.

C#
public int IndexOf(T value)
Parameters:valueT

The value.

Returns:

int

Implements: IReadOnlyCollection<T>.IndexOf(T)

C#
public virtual void Load(IEnumerable<T> source)
Parameters:sourceIEnumerable<T>
C#
protected abstract void Perform()
C#
protected virtual void SetDirty()