New to Telerik ReportingStart a free 30-day trial

Base class for all labels

Definition

Constructors

Create new instance of ChartBaseLabel class.

C#
public ChartBaseLabel()

Create new instance of ChartBaseLabel class.

C#
public ChartBaseLabel(IContainer container)
Parameters:containerIContainer

Container of the label

Create new instance of ChartBaseLabel class.

C#
public ChartBaseLabel(object parent, IContainer container, TextBlock textBlock, LayoutStyle appearance)
Parameters:parentobject

Parent element

containerIContainer

Container of the label

textBlockTextBlock

TextBlock

appearanceLayoutStyle

Style of label

Create new instance of ChartBaseLabel class.

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

Parent element

containerIContainer

Container of the label

textBlockTextBlock

TextBlock

Create new instance of ChartBaseLabel class.

C#
public ChartBaseLabel(object parent, IContainer container)
Parameters:parentobject

Parent element

containerIContainer

Container of the label

Create new instance of ChartBaseLabel class.

C#
public ChartBaseLabel(object parent)
Parameters:parentobject

Parent element

Create new instance of ChartBaseLabel class.

C#
public ChartBaseLabel(string text)
Parameters:textstring

Text of TextBlock

Create new instance of ChartBaseLabel class.

C#
public ChartBaseLabel(TextBlock textBlock)
Parameters:textBlockTextBlock

TextBlock

Fields

Active region

C#
protected ActiveRegion chartBaseLabelActiveRegion

List, that represent the render order for taken up elements (For IContainer.OrderList property)

C#
protected List<IOrdering> chartBaseLabelOrderList

Parent element

C#
protected object chartBaseLabelParent

Properties

Gets and sets Active region

C#
[Browsable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public ActiveRegion ActiveRegion { get; set; }
Property Value:

Active region to set

Graphic marker of label

C#
[Browsable(true)]
[TypeConverter(typeof(ExpandableObjectConverter))]
[PersistenceMode(PersistenceMode.InnerProperty)]
[SkinnableProperty]
public ChartMarker Marker { get; }

Gets a next free order position

C#
[Browsable(false)]
public int NextPosition { get; }

Implements: IContainer.NextPosition

List, that represent the render order for taken up elements

C#
[Browsable(false)]
public List<IOrdering> OrderList { get; }

Implements: IContainer.OrderList

Parent

object

Gets and sets Parent element

C#
[Browsable(false)]
public object Parent { get; set; }
Property Value:

Element that should be Parent for this

ChartLabel TextBlock

C#
[Browsable(true)]
[TypeConverter(typeof(ExpandableObjectConverter))]
[PersistenceMode(PersistenceMode.InnerProperty)]
[SkinnableProperty]
public virtual TextBlock TextBlock { get; }

Gets and sets label's visibility

C#
[PersistenceMode(PersistenceMode.Attribute)]
public virtual bool Visible { get; set; }
Property Value:

Visible label or not

Methods

Add element at the end of list

C#
public void Add(IOrdering element)
Parameters:elementIOrdering

Element

Implements: IContainer.Add(IOrdering)

Clone()

object

Clone this object

C#
public virtual object Clone()
Returns:

object

New instance of ChartBaseLabel class with the same fields as this object

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: LayoutElement.Dispose(bool)

Gets elements order position

C#
public int GetOrder(IOrdering element)
Parameters:elementIOrdering

Element

Returns:

int

Implements: IContainer.GetOrder(IOrdering)

Insert element at specific position in list

C#
public void Insert(int order, IOrdering element)
Parameters:orderint

Position

elementIOrdering

Element

Implements: IContainer.Insert(int, IOrdering)

Load ViewState

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

ViewState with data

Overrides: LayoutElement.LoadViewState(object)

Re-index order list

C#
public void ReIndex()

Implements: IContainer.ReIndex()

Remove element from list

C#
public void Remove(IOrdering element)
Parameters:elementIOrdering

Element

Implements: IContainer.Remove(IOrdering)

Remove element from list by it's index

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

Position

Implements: IContainer.RemoveAt(int)

Save to ViewState

C#
protected override object SaveViewState()
Returns:

object

Saved data

Overrides: LayoutElement.SaveViewState()

Track ViewState

C#
protected override void TrackViewState()

Overrides: LayoutElement.TrackViewState()