New to Telerik ReportingStart a free 30-day trial

Base class for extended labels

Definition

Constructors

Create new instance of Extended label class.

C#
public ExtendedLabel()

Create new instance of Extended label class.

C#
public ExtendedLabel(object parent, IContainer container, StyleExtendedLabel appearance, TextBlock textBlock, string text)
Parameters:parentobject

Parent element

containerIContainer

Container

appearanceStyleExtendedLabel

Style of label

textBlockTextBlock

TextBlock

textstring

Text of elemnt

Create new instance of Extended label class.

C#
public ExtendedLabel(object parent, IContainer container, TextBlock textBlock)
Parameters:parentobject

Parent element

containerIContainer

Container

textBlockTextBlock

TextBlock

Create new instance of Extended label class.

C#
public ExtendedLabel(object parent)
Parameters:parentobject

Parent element

Create new instance of Extended label class.

C#
public ExtendedLabel(string text)
Parameters:textstring

Text of label

Create new instance of Extended label class.

C#
public ExtendedLabel(StyleExtendedLabel appearance, object parent)
Parameters:appearanceStyleExtendedLabel

Style of label

parentobject

Parent element

Create new instance of Extended label class.

C#
public ExtendedLabel(StyleExtendedLabel appearance, string text)
Parameters:appearanceStyleExtendedLabel

Style of label

textstring

Text

Create new instance of Extended label class.

C#
public ExtendedLabel(StyleExtendedLabel appearance)
Parameters:appearanceStyleExtendedLabel

Style of label

Create new instance of Extended label class.

C#
public ExtendedLabel(TextBlock textBlock)
Parameters:textBlockTextBlock

TextBlock

Fields

Inside labels collection

C#
protected ChartLabelsCollection extendedLabelItems

Properties

Gets style of label

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
[SkinnableProperty]
public StyleExtendedLabel Appearance { get; }

Items collection.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ChartLabelsCollection Items { get; }

Gets and sets LabelItem at specified position

C#
[Browsable(false)]
public virtual LabelItem this[int itemIndex] { get; set; }
Parameters:itemIndexint

Item position

Property Value:

Item at specified position

Methods

Add inside labels

C#
public void AddLabel(ChartLabelsCollection chartLabels)
Parameters:chartLabelsChartLabelsCollection

Inside labels to add

Add inside labels

C#
public void AddLabel(LabelItem Label, params LabelItem[] chartLabels)
Parameters:LabelLabelItem

Inside label to add

chartLabelsLabelItem[]

Inside labels to add

Add inside labels

C#
public void AddLabel(LabelItem[] chartLabels)
Parameters:chartLabelsLabelItem[]

Inside labels to add

Add inside labels

C#
public void AddLabel(List<LabelItem> labels)
Parameters:labelsList<LabelItem>

Clear LabelItems collection

C#
public void Clear()

Releases unmanaged and - optionally - managed resources

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides: ChartBaseLabel.Dispose(bool)

Get inner label at specified position

C#
public LabelItem GetLabel(int index)
Parameters:indexint

Position to get label

Returns:

LabelItem

Label at specified position

load ViewState

C#
protected override void LoadViewState(object savedState)
Parameters:savedStateobject

ViewState with data

Overrides: ChartBaseLabel.LoadViewState(object)

Removes all inner labels

C#
public void RemoveAllLabels()

Removes inner labels

C#
public void RemoveLabel(int index, params int[] indexes)
Parameters:indexint

Position where label should be removed

indexesint[]

Positions where labels should be removed

Removes inner labels

C#
public void RemoveLabel(LabelItem Label, params LabelItem[] chartLabels)
Parameters:LabelLabelItem

Label to remove

chartLabelsLabelItem[]

Labels to remove

Save ViewState

C#
protected override object SaveViewState()
Returns:

object

Saved data

Overrides: ChartBaseLabel.SaveViewState()

Track ViewState

C#
protected override void TrackViewState()

Overrides: ChartBaseLabel.TrackViewState()