Base class for all collections support view state tracking
Definition
Namespace:Telerik.Reporting.Charting
Assembly:Telerik.Reporting.dll
Type Parameters:
T
Collection item type
Syntax:
public abstract class ChartingStateManagedCollection<T> : IChartingStateManager where T : class, IChartingStateManagedItem, new()
Inheritance: objectChartingStateManagedCollection<T>
Derived Classes:
Implements:
Constructors
protected ChartingStateManagedCollection()
Properties
Count
int
Gets items count in collection
public int Count { get; }
IsReadOnly
bool
Gets true if collection is read-only
public bool IsReadOnly { get; }
List
IList<T>
Items list
protected IList<T> List { get; }
Gets the collection item at given index
public virtual T this[int index] { get; set; }
Index
Property Value:Item of type "T"
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()
Contains(T)
bool
Checks does collection contain the given item
public virtual bool Contains(T item)
Item to check
Returns:bool
True if item is a collection member
public void CopyTo(T[] array, int arrayIndex)
GetEnumerator()
IEnumerator<T>
public IEnumerator<T> GetEnumerator()
IEnumerator<T>
IndexOf(T)
int
Item index in collection
public int IndexOf(T item)
Item to get index of
Returns:int
Index
Inserts item at the given index
public virtual void Insert(int index, T item)
Index
itemTItem to insert
Loads collection from view state
protected virtual void LoadViewState(object state)
View state to load from
Before collection clearing event
protected virtual void OnClear()
Collection after clean event
protected virtual void OnClearComplete()
Item before insert event
protected virtual void OnInsert(int index, object value)
Index to insert at
valueobjectValue to insert
Item after insert event
protected virtual void OnInsertComplete(int index, object value)
Index to insert at
valueobjectValue to insert
Item before remove event
protected virtual void OnRemove(int index, object value)
Index to insert at
valueobjectValue to insert
Item after remove event
protected virtual void OnRemoveComplete(int index, object value)
Index to insert at
valueobjectValue to insert
Remove(T)
bool
Removes item from collection
public virtual bool Remove(T item)
Item to remove
Returns:bool
True in case of success
Removes item from collection at given index
public virtual void RemoveAt(int index)
Index to remove at
SaveViewState()
object
Saves collection to a view state
protected virtual object SaveViewState()
object
Saved state bag object
Marks collection item dirty
protected virtual void SetItemDirty(T item)
Item to mark