New to Telerik ReportingStart a free 30-day trial

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:

C#
public abstract class ChartingStateManagedCollection<T> : IChartingStateManager where T : class, IChartingStateManagedItem, new()

Inheritance: objectChartingStateManagedCollection<T>

Derived Classes: AxisSegmentCollectionChartAxisItemsCollectionChartLabelsCollectionChartMarkedZonesCollectionChartSeriesCollectionChartSeriesItemsCollectionColorBlendCustomFiguresCollectionCustomPalettesCollectionPaletteItemsCollection...

Implements: IChartingStateManager

Constructors

C#
protected ChartingStateManagedCollection()

Properties

Gets items count in collection

C#
public int Count { get; }

Gets true if collection is read-only

C#
public bool IsReadOnly { get; }

List

IList<T>

Items list

C#
protected IList<T> List { get; }

Gets the collection item at given index

C#
public virtual T this[int index] { get; set; }
Parameters:indexint

Index

Property Value:

Item of type "T"

Methods

Adds new item in collection

C#
public virtual void Add(T item)
Parameters:itemT

Item to add

Adds items range in collection

C#
public virtual void AddRange(T[] itemsToAdd)
Parameters:itemsToAddT[]

Items array to add

Clears collection

C#
public void Clear()

Checks does collection contain the given item

C#
public virtual bool Contains(T item)
Parameters:itemT

Item to check

Returns:

bool

True if item is a collection member

C#
public void CopyTo(T[] array, int arrayIndex)
Parameters:arrayT[]arrayIndexint

GetEnumerator()

IEnumerator<T>

C#
public IEnumerator<T> GetEnumerator()
Returns:

IEnumerator<T>

Item index in collection

C#
public int IndexOf(T item)
Parameters:itemT

Item to get index of

Returns:

int

Index

Inserts item at the given index

C#
public virtual void Insert(int index, T item)
Parameters:indexint

Index

itemT

Item to insert

Loads collection from view state

C#
protected virtual void LoadViewState(object state)
Parameters:stateobject

View state to load from

Before collection clearing event

C#
protected virtual void OnClear()

Collection after clean event

C#
protected virtual void OnClearComplete()

Item before insert event

C#
protected virtual void OnInsert(int index, object value)
Parameters:indexint

Index to insert at

valueobject

Value to insert

Item after insert event

C#
protected virtual void OnInsertComplete(int index, object value)
Parameters:indexint

Index to insert at

valueobject

Value to insert

Item before remove event

C#
protected virtual void OnRemove(int index, object value)
Parameters:indexint

Index to insert at

valueobject

Value to insert

Item after remove event

C#
protected virtual void OnRemoveComplete(int index, object value)
Parameters:indexint

Index to insert at

valueobject

Value to insert

Removes item from collection

C#
public virtual bool Remove(T item)
Parameters:itemT

Item to remove

Returns:

bool

True in case of success

Removes item from collection at given index

C#
public virtual void RemoveAt(int index)
Parameters:indexint

Index to remove at

Saves collection to a view state

C#
protected virtual object SaveViewState()
Returns:

object

Saved state bag object

Marks collection item dirty

C#
protected virtual void SetItemDirty(T item)
Parameters:itemT

Item to mark