Class ChartingStateManagedCollection<T>
Base class for all collections support view state tracking
Inheritance
Inherited Members
Namespace: Telerik.Charting
Assembly: Telerik.WinControls.RadChart.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
|
Implements
IsReadOnly
Gets true if collection is read-only
Declaration
public bool IsReadOnly { get; }
Property Value
|
System.Boolean
|
Implements
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" |
Implements
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 |
Implements
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()
Implements
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 |
Implements
CopyTo(T[], Int32)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
|
T[]
array
|
|
System.Int32
arrayIndex
|
Implements
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
|
System.Collections.Generic.IEnumerator<T>
|
Implements
IndexOf(T)
Item index in collection
Declaration
public int IndexOf(T item)
Parameters
|
T
item
Item to get index of |
Returns
|
System.Int32
Index |
Implements
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 |
Implements
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 |
Implements
RemoveAt(Int32)
Removes item from collection at given index
Declaration
public virtual void RemoveAt(int index)
Parameters
|
System.Int32
index
Index to remove at |
Implements
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
ICollection.CopyTo(Array, Int32)
Copies the entire ICollection to a compatible one-dimensional array, starting at the specified index of the target array.
Declaration
void ICollection.CopyTo(Array array, int index)
Parameters
|
System.Array
array
The one-dimensional System.Array that is the destination of the elements |
|
System.Int32
index
|
Implements
ICollection.Count
Gets the collection items count
Declaration
int ICollection.Count { get; }
Returns
|
System.Int32
|
Implements
ICollection.IsSynchronized
Checks is collection synchronized
Declaration
bool ICollection.IsSynchronized { get; }
Returns
|
System.Boolean
|
Implements
ICollection.SyncRoot
Gets the collection root
Declaration
object ICollection.SyncRoot { get; }
Returns
|
System.Object
|
Implements
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through the collection
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
|
System.Collections.IEnumerator
An System.Collections.IEnumerator object that can be used to iterate through the collection |
Implements
IList.Add(Object)
Adds new item in the IList
Declaration
int IList.Add(object value)
Parameters
|
System.Object
value
Item to add |
Returns
|
System.Int32
Item index in IList |
Implements
IList.Clear()
Clears IList items
Declaration
void IList.Clear()
Implements
IList.Contains(Object)
Checks does IList contain the given value
Declaration
bool IList.Contains(object value)
Parameters
|
System.Object
value
Value to check |
Returns
|
System.Boolean
True if contains |
Implements
IList.get_Item(Int32)
Declaration
object IList.get_Item(int index)
Parameters
|
System.Int32
index
|
Returns
|
System.Object
|
Implements
IList.IndexOf(Object)
Gets the index of the object value in an IList
Declaration
int IList.IndexOf(object value)
Parameters
|
System.Object
value
Value to check |
Returns
|
System.Int32
Index in IList or -1 if IList does not contain given value |
Implements
IList.Insert(Int32, Object)
Inserts new value in IList at given index
Declaration
void IList.Insert(int index, object value)
Parameters
|
System.Int32
index
Index to insert to |
|
System.Object
value
Value to insert |
Implements
IList.IsFixedSize
Is IList fixed size. Returns False
Declaration
bool IList.IsFixedSize { get; }
Returns
|
System.Boolean
|
Implements
IList.IsReadOnly
Is IList is read-only
Declaration
bool IList.IsReadOnly { get; }
Returns
|
System.Boolean
|
Implements
IList.Item[Int32]
Gets or sets the value from/to IList at the give index
Declaration
object IList.this[] { get; set; }
Parameters
|
System.Int32
index
Index to give element at |
Returns
|
System.Object
Value from IList |
Implements
IList.Remove(Object)
Removes value from IList
Declaration
void IList.Remove(object value)
Parameters
|
System.Object
value
Value to remove |
Implements
IList.RemoveAt(Int32)
Removes value from IList at the given index
Declaration
void IList.RemoveAt(int index)
Parameters
|
System.Int32
index
Index to remove value at |
Implements
IList.set_Item(Int32, Object)
Declaration
void IList.set_Item(int index, object value)
Parameters
|
System.Int32
index
|
|
System.Object
value
|
Implements
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()