Class LabelElement
Inherited Members
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
Constructors
LabelElement(DataPointElement)
Initializes a new instance of the LabelElement class.
Declaration
public LabelElement(DataPointElement dataPointElement)
Parameters
DataPointElement
dataPointElement
The data point element. |
Fields
LineSideProperty
Properties
DataPoint
Gets the data point.
Declaration
public DataPoint DataPoint { get; }
Property Value
DataPoint
The data point. |
DataPointElement
Gets the data point element.
Declaration
public DataPointElement DataPointElement { get; }
Property Value
DataPointElement
The data point element. |
LineSide
Gets or sets the line side.
Declaration
public LineSide LineSide { get; set; }
Property Value
LineSide
The line side. |
SmartRectangle
Gets or sets the smart rectangle.
Declaration
public virtual Rectangle SmartRectangle { get; set; }
Property Value
System.Drawing.Rectangle
The smart rectangle. |
Text
Gets or sets the text.
Declaration
public string Text { get; set; }
Property Value
System.String
The text. |
TextAlignment
Gets or sets the text alignment.
Declaration
public ContentAlignment TextAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment
The text alignment. |
Methods
GetFormattedLabelContent()
Gets the content of the formatted label.
Declaration
protected string GetFormattedLabelContent()
Returns
System.String
|
GetLayoutSlot()
MeasureLabel(String, Font)
Measures the label.
Declaration
protected SizeF MeasureLabel(string text, Font font)
Parameters
System.String
text
The text. |
System.Drawing.Font
font
The font. |
Returns
System.Drawing.SizeF
|
OnAttached(UIChartElement)
Called when [attached].
Declaration
protected override void OnAttached(UIChartElement parent)
Parameters
UIChartElement
parent
The parent. |
Overrides
OnLabelFormatting(ChartViewLabelFormattingEventArgs)
Raises the LabelFormatting event.
Declaration
public void OnLabelFormatting(ChartViewLabelFormattingEventArgs e)
Parameters
ChartViewLabelFormattingEventArgs
e
The ChartViewLabelFormattingEventArgs instance containing the event data. |
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|