ClassChartingStateManagedCollection<T>
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
ChartingStateManagedCollection()
Declaration
protected ChartingStateManagedCollection()
Properties
Count
Gets items count in collection
Declaration
public int Count { get; }
Property Value
int
IsReadOnly
Gets true if collection is read-only
Declaration
public bool IsReadOnly { get; }
Property Value
bool
List
Items list
Declaration
protected IList<T> List { get; }
Property Value
IList<T>
this[int]
Gets the collection item at given index
Declaration
public virtual T this[int index] { get; set; }
Parameters
index
int
Index
Property Value
T
Item of type "T"
Methods
Add(T)
Adds new item in collection
Declaration
public virtual void Add(T item)
Parameters
item
T
Item to add
AddRange(T[])
Adds items range in collection
Declaration
public virtual void AddRange(T[] itemsToAdd)
Parameters
itemsToAdd
T[]
Items array to add
Contains(T)
Checks does collection contain the given item
Declaration
public virtual bool Contains(T item)
Parameters
item
T
Item to check
Returns
bool
True if item is a collection member
CopyTo(T[], int)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
array
T[]
arrayIndex
int
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
IEnumerator<T>
IndexOf(T)
Item index in collection
Declaration
public int IndexOf(T item)
Parameters
item
T
Item to get index of
Returns
int
Index
Insert(int, T)
Inserts item at the given index
Declaration
public virtual void Insert(int index, T item)
Parameters
index
int
Index
item
T
Item to insert
LoadViewState(object)
Loads collection from view state
Declaration
protected virtual void LoadViewState(object state)
Parameters
state
object
View state to load from
OnClear()
Before collection clearing event
Declaration
protected virtual void OnClear()
OnClearComplete()
Collection after clean event
Declaration
protected virtual void OnClearComplete()
OnInsert(int, object)
Item before insert event
Declaration
protected virtual void OnInsert(int index, object value)
Parameters
index
int
Index to insert at
value
object
Value to insert
OnInsertComplete(int, object)
Item after insert event
Declaration
protected virtual void OnInsertComplete(int index, object value)
Parameters
index
int
Index to insert at
value
object
Value to insert
OnRemove(int, object)
Item before remove event
Declaration
protected virtual void OnRemove(int index, object value)
Parameters
index
int
Index to insert at
value
object
Value to insert
OnRemoveComplete(int, object)
Item after remove event
Declaration
protected virtual void OnRemoveComplete(int index, object value)
Parameters
index
int
Index to insert at
value
object
Value to insert
Remove(T)
Removes item from collection
Declaration
public virtual bool Remove(T item)
Parameters
item
T
Item to remove
Returns
bool
True in case of success
RemoveAt(int)
Removes item from collection at given index
Declaration
public virtual void RemoveAt(int index)
Parameters
index
int
Index to remove at
SaveViewState()
Saves collection to a view state
Declaration
protected virtual object SaveViewState()
Returns
object
Saved state bag object
SetItemDirty(T)
Marks collection item dirty
Declaration
protected virtual void SetItemDirty(T item)
Parameters
item
T
Item to mark