New to Telerik UI for WinForms? Start a free 30-day trial

Maintains a typed view of an owner's child nodes and synchronizes insertion, removal, and clearing with the node tree. Replacing an item through the inherited indexer does not update the node tree.

Definition

Namespace:Telerik.WinControls.UI.Sparkline

Assembly:Telerik.WinControls.UI.dll

Type Parameters:

T

The type of spark node stored in the collection.

Syntax:

C#
public class ElementCollection<T> : Collection<T>, IList, ICollection, IEnumerable where T : SparkNode

Inheritance: objectCollection<T>ElementCollection<T>

Derived Classes: DataPointSparkCollection<T>

Implements: ICollectionIEnumerableIList

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>.SetItem(int, T)Collection<T>.CountCollection<T>.ItemsCollection<T>.this[int]...

Constructors

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

C#
public ElementCollection(SparkElement owner)
Parameters:ownerSparkElement

The owner.

Methods

Removes all items from the collection.

C#
protected override void ClearItems()

Overrides: Collection<T>.ClearItems()

Inserts the item at the specified index.

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

The index.

itemT

The item.

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

Removes the item at the specified index.

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

The index.

Overrides: Collection<T>.RemoveItem(int)