Class ChartingStateManagedCollection<T>
Base class for all collections support view state tracking
Inheritance
Namespace: Telerik.Reporting.Charting
Assembly: Telerik.Reporting.dll
Syntax
public abstract class ChartingStateManagedCollection<T> : IDeserializableCollection, IList<T>, ICollection<T>, IEnumerable<T>, IChartingStateManager, IList, ICollection, IEnumerable where T : class, IChartingStateManagedItem, new()
Type Parameters
T
Collection item type |
Constructors
ChartingStateManagedCollection()
Declaration
protected ChartingStateManagedCollection()
Properties
Count
Gets items count in collection
Declaration
public int Count { get; }
Property Value
System.Int32
|
IsReadOnly
Gets true if collection is read-only
Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean
|
Item[Int32]
Gets the collection item at given index
Declaration
public virtual T this[int index] { get; set; }
Parameters
System.Int32
index
Index |
Property Value
T
Item of type "T" |
List
Items list
Declaration
protected IList<T> List { get; }
Property Value
System.Collections.Generic.IList<T>
|
Methods
Add(T)
Adds new item in collection
Declaration
public virtual void Add(T item)
Parameters
T
item
Item to add |
AddRange(T[])
Adds items range in collection
Declaration
public virtual void AddRange(T[] itemsToAdd)
Parameters
T[]
itemsToAdd
Items array to add |
Clear()
Clears collection
Declaration
public void Clear()
Contains(T)
Checks does collection contain the given item
Declaration
public virtual bool Contains(T item)
Parameters
T
item
Item to check |
Returns
System.Boolean
True if item is a collection member |
CopyTo(T[], Int32)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
T[]
array
|
System.Int32
arrayIndex
|
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<T>
|
IndexOf(T)
Item index in collection
Declaration
public int IndexOf(T item)
Parameters
T
item
Item to get index of |
Returns
System.Int32
Index |
Insert(Int32, T)
Inserts item at the given index
Declaration
public virtual void Insert(int index, T item)
Parameters
System.Int32
index
Index |
T
item
Item to insert |
LoadViewState(Object)
Loads collection from view state
Declaration
protected virtual void LoadViewState(object state)
Parameters
System.Object
state
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(Int32, Object)
Item before insert event
Declaration
protected virtual void OnInsert(int index, object value)
Parameters
System.Int32
index
Index to insert at |
System.Object
value
Value to insert |
OnInsertComplete(Int32, Object)
Item after insert event
Declaration
protected virtual void OnInsertComplete(int index, object value)
Parameters
System.Int32
index
Index to insert at |
System.Object
value
Value to insert |
OnRemove(Int32, Object)
Item before remove event
Declaration
protected virtual void OnRemove(int index, object value)
Parameters
System.Int32
index
Index to insert at |
System.Object
value
Value to insert |
OnRemoveComplete(Int32, Object)
Item after remove event
Declaration
protected virtual void OnRemoveComplete(int index, object value)
Parameters
System.Int32
index
Index to insert at |
System.Object
value
Value to insert |
Remove(T)
Removes item from collection
Declaration
public virtual bool Remove(T item)
Parameters
T
item
Item to remove |
Returns
System.Boolean
True in case of success |
RemoveAt(Int32)
Removes item from collection at given index
Declaration
public virtual void RemoveAt(int index)
Parameters
System.Int32
index
Index to remove at |
SaveViewState()
Saves collection to a view state
Declaration
protected virtual object SaveViewState()
Returns
System.Object
Saved state bag object |
SetItemDirty(T)
Marks collection item dirty
Declaration
protected virtual void SetItemDirty(T item)
Parameters
T
item
Item to mark |
ToString()
ToString() override. Used in the properties grid to avoid object type showing.
Declaration
public override string ToString()
Returns
System.String
Empty string |
Overrides
Explicit Interface Implementations
IChartingStateManager.IsTrackingViewState
Gets the view state tracking status
Declaration
bool IChartingStateManager.IsTrackingViewState { get; }
Returns
System.Boolean
|
Implements
IChartingStateManager.LoadViewState(Object)
Loads collection from view state
Declaration
void IChartingStateManager.LoadViewState(object state)
Parameters
System.Object
state
View state to load from |
Implements
IChartingStateManager.SaveViewState()
Saves collection to a view state
Declaration
object IChartingStateManager.SaveViewState()
Returns
System.Object
Saved state bag object |
Implements
IChartingStateManager.TrackViewState()
Tracks view state changes
Declaration
void IChartingStateManager.TrackViewState()