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

Represents a strongly typed collection of ChartElementPresenter instances.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Type Parameters:

T

Must be ChartElementPresenter.

Syntax:

C#
public class PresenterCollection<T> : Collection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : ChartElementPresenter

Inheritance: objectCollection<T>PresenterCollection<T>

Implements: ICollectionICollection<T>IEnumerableIEnumerable<T>IListIList<T>IReadOnlyCollection<T>IReadOnlyList<T>...

Inherited Members Collection<T>.Add(T)Collection<T>.Clear()Collection<T>.CopyTo(T[], int)Collection<T>.Contains(T)Collection<T>.GetEnumerator()Collection<T>.IndexOf(T)Collection<T>.Insert(int, T)Collection<T>.Remove(T)Collection<T>.RemoveAt(int)Collection<T>.CountCollection<T>.ItemsCollection<T>.this[int]...

Methods

Removes all elements from the Collection<T>.

C#
protected override void ClearItems()

Overrides: Collection<T>.ClearItems()

Inserts an element into the collection at the specified index.

C#
protected override void InsertItem(int index, T item)
Parameters:indexintitemT

Overrides: Collection<T>.InsertItem(int, T)

Removes the element at the specified index of the collection.

C#
protected override void RemoveItem(int index)
Parameters:indexint

Overrides: Collection<T>.RemoveItem(int)

Replaces the element at the specified index.

C#
protected override void SetItem(int index, T item)
Parameters:indexint

The zero-based index of the element to replace.

itemT

The new value for the element at the specified index. The value can be null for reference types.

Exceptions:

ArgumentOutOfRangeException

index is less than zero. -or- index is greater than Count.

Overrides: Collection<T>.SetItem(int, T)