Class
ChartLabelsCollection

Collection of labels

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

cs-api-definition
public class ChartLabelsCollection : ChartingStateManagedCollection<LabelItem>, IList<LabelItem>, ICollection<LabelItem>, IEnumerable<LabelItem>, IChartingStateManager, IList, ICollection, IEnumerable

Inheritance: objectChartingStateManagedCollection<LabelItem>ChartLabelsCollection

Implements: IChartingStateManagerICollectionICollection<LabelItem>IEnumerableIEnumerable<LabelItem>IListIList<LabelItem>

Inherited Members ChartingStateManagedCollection<LabelItem>.IndexOf(LabelItem)ChartingStateManagedCollection<LabelItem>.AddRange(LabelItem[])ChartingStateManagedCollection<LabelItem>.Contains(LabelItem)ChartingStateManagedCollection<LabelItem>.CopyTo(LabelItem[], int)ChartingStateManagedCollection<LabelItem>.GetEnumerator()ChartingStateManagedCollection<LabelItem>.SetItemDirty(LabelItem)ChartingStateManagedCollection<LabelItem>.OnInsert(int, object)ChartingStateManagedCollection<LabelItem>.OnRemove(int, object)ChartingStateManagedCollection<LabelItem>.OnClear()ChartingStateManagedCollection<LabelItem>.ListChartingStateManagedCollection<LabelItem>.CountChartingStateManagedCollection<LabelItem>.IsReadOnly

Constructors

ChartLabelsCollection()

Create new instance of ChartLabelsCollection class.

Declaration

cs-api-definition
public ChartLabelsCollection()

Properties

Parent

Parent element

Declaration

cs-api-definition
[Browsable(false)]
public object Parent { get; set; }

Property Value

object

this[int]

Gets or sets a LabelItem at the specific position in Labels collection.

Declaration

cs-api-definition
[Browsable(false)]
public override LabelItem this[int index] { get; set; }

Parameters

index

int

Position in the collection

Property Value

LabelItem

LabelItem at the specific position

Overrides ChartingStateManagedCollection<LabelItem>.this[int]

Methods

Add(LabelItem)

Add LabelItem at the collection

Declaration

cs-api-definition
public override void Add(LabelItem item)

Parameters

item

LabelItem

LabelItem for adding

Overrides ChartingStateManagedCollection<LabelItem>.Add(LabelItem)

Clear()

Clear collection

Declaration

cs-api-definition
public void Clear()

Insert(int, LabelItem)

Insert LabelItem in collection at the specific position

Declaration

cs-api-definition
public override void Insert(int index, LabelItem item)

Parameters

index

int

Position

item

LabelItem

LabelItem

Overrides ChartingStateManagedCollection<LabelItem>.Insert(int, LabelItem)

LoadViewState(object)

Load data from ViewState

Declaration

cs-api-definition
protected override void LoadViewState(object state)

Parameters

state

object

ViewState with data

Overrides ChartingStateManagedCollection<LabelItem>.LoadViewState(object)

OnClearComplete()

Clear items

Declaration

cs-api-definition
protected override void OnClearComplete()

Overrides ChartingStateManagedCollection<LabelItem>.OnClearComplete()

OnInsertComplete(int, object)

Insert item in collection

Declaration

cs-api-definition
protected override void OnInsertComplete(int index, object value)

Parameters

index

int

Index to insert in

value

object

Value to insert

Overrides ChartingStateManagedCollection<LabelItem>.OnInsertComplete(int, object)

OnRemoveComplete(int, object)

Remove item at specified index

Declaration

cs-api-definition
protected override void OnRemoveComplete(int index, object value)

Parameters

index

int

value

object

Overrides ChartingStateManagedCollection<LabelItem>.OnRemoveComplete(int, object)

Remove(LabelItem)

Remove LabelItem from collection

Declaration

cs-api-definition
public override bool Remove(LabelItem item)

Parameters

item

LabelItem

LabelItem

Returns

bool

Overrides ChartingStateManagedCollection<LabelItem>.Remove(LabelItem)

RemoveAt(int)

Remove LabelItem in the specific position from collection

Declaration

cs-api-definition
public override void RemoveAt(int index)

Parameters

index

int

Position

Overrides ChartingStateManagedCollection<LabelItem>.RemoveAt(int)

SaveViewState()

Save data to ViewState

Declaration

cs-api-definition
protected override object SaveViewState()

Returns

object

Saved data

Overrides ChartingStateManagedCollection<LabelItem>.SaveViewState()