LabelElement
Associates a data point with the text and layout settings used to render its chart label.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.ChartView.dll
Syntax:
public class LabelElement : ChartImageElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IChartElementPresenter, IStylableElement, IStylableNode, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IShapedElement, IImageElement
Inheritance: objectDisposableObjectRadObjectUIChartElementChartImageElementLabelElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the LabelElement class.
public LabelElement(DataPointElement dataPointElement)
The data point element.
Fields
Identifies the property that selects the connector-line endpoint side on the label.
public static readonly RadProperty LineSideProperty
Properties
Gets the data point.
public DataPoint DataPoint { get; }
The data point.
Gets the data point element.
public DataPointElement DataPointElement { get; }
The data point element.
Gets or sets the line side.
public LineSide LineSide { get; set; }
The line side.
Gets or sets the smart rectangle.
public virtual Rectangle SmartRectangle { get; set; }
The smart rectangle.
Gets or sets the text alignment.
public ContentAlignment TextAlignment { get; set; }
The text alignment.
Methods
Gets the content of the formatted label.
Gets the layout slot.
Called when [attached].
protected override void OnAttached(UIChartElement parent)
The parent.
Overrides:
Raises the event.
public void OnLabelFormatting(ChartViewLabelFormattingEventArgs e)
The ChartViewLabelFormattingEventArgs instance containing the event data.
Refreshes the label after a registered property changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Overrides: