Class ChartSeriesLabelStrategy
Allows for pluggable customization of the appearance and layout of data point labels within a ChartSeries instance.
Inheritance
Namespace: Telerik.Windows.Controls.ChartView
Assembly: Telerik.Windows.Controls.Chart.dll
Syntax
public abstract class ChartSeriesLabelStrategy : Object
Constructors
ChartSeriesLabelStrategy()
Declaration
protected ChartSeriesLabelStrategy()
Properties
Options
Gets the functionality this strategy handles.
Declaration
public abstract LabelStrategyOptions Options { get; }
Property Value
LabelStrategyOptions
|
Methods
CreateDefaultVisual(DataPoint, Int32)
Creates a System.Windows.FrameworkElement instance that will represent the label for the provided data point.
Declaration
public virtual FrameworkElement CreateDefaultVisual(DataPoint point, int labelIndex)
Parameters
DataPoint
point
The data point a label is needed for. |
System.Int32
labelIndex
The index of the label. More than one label is supported per data point. |
Returns
System.Windows.FrameworkElement
|
GetLabelContent(DataPoint, Int32)
Gets the content for the label at the specified index, associated with the provided data point.
Declaration
public virtual object GetLabelContent(DataPoint point, int labelIndex)
Parameters
DataPoint
point
The data point the label is associated with. |
System.Int32
labelIndex
|
Returns
System.Object
|
GetLabelDesiredSize(DataPoint, FrameworkElement, Int32)
Gets the RadSize structure that is the desired size of the specified label visual, associated with the provided data point.
Declaration
public virtual RadSize GetLabelDesiredSize(DataPoint point, FrameworkElement visual, int labelIndex)
Parameters
DataPoint
point
|
System.Windows.FrameworkElement
visual
|
System.Int32
labelIndex
|
Returns
RadSize
|
GetLabelLayoutSlot(DataPoint, FrameworkElement, Int32)
Gets the RadRect structure that defines the layout slot of the label at the specified label index, associated with the provided data point.
Declaration
public virtual RadRect GetLabelLayoutSlot(DataPoint point, FrameworkElement visual, int labelIndex)
Parameters
DataPoint
point
|
System.Windows.FrameworkElement
visual
|
System.Int32
labelIndex
|
Returns
RadRect
|
SetLabelContent(DataPoint, FrameworkElement, Int32)
Sets the content of the label visual at the specified label index associated with the provided data point.
Declaration
public virtual void SetLabelContent(DataPoint point, FrameworkElement visual, int labelIndex)
Parameters
DataPoint
point
The data point the label is associated with. |
System.Windows.FrameworkElement
visual
The System.Windows.FrameworkElement instance that represents the label. |
System.Int32
labelIndex
The label index. |