Base class for all collections support view state tracking
Definition
Namespace:Telerik.Charting
Assembly:Telerik.WinControls.RadChart.dll
Type Parameters:
T
Collection item type
Syntax:
public abstract class ChartingStateManagedCollection<T> : IChartingStateManager, IList, ICollection, IEnumerable where T : class, IChartingStateManagedItem, new()
Inheritance: objectChartingStateManagedCollection<T>
Derived Classes:
Implements:
Constructors
protected ChartingStateManagedCollection()
Properties
Gets true if collection is read-only
public bool IsReadOnly { get; }
List
IList<T>
Items list
protected IList<T> List { get; }
Methods
Adds new item in collection
public virtual void Add(T item)
Item to add
Adds items range in collection
public virtual void AddRange(T[] itemsToAdd)
Items array to add
Clears collection
public void Clear()
Checks does collection contain the given item
public virtual bool Contains(T item)
Item to check
Returns:True if item is a collection member
public IEnumerator<T> GetEnumerator()
IEnumerator<T>
Item index in collection
Inserts item at the given index
Loads collection from view state
Before collection clearing event
protected virtual void OnClear()
Collection after clean event
protected virtual void OnClearComplete()
Removes item from collection
public virtual bool Remove(T item)
Item to remove
Returns:True in case of success
Removes item from collection at given index
Saves collection to a view state
Marks collection item dirty
protected virtual void SetItemDirty(T item)
Item to mark