Class
ChartAnnotationLabelDefinition

Describes the appearance of the labels within a ChartAnnotation.

Definition

Namespace:Telerik.UI.Xaml.Controls.Chart

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class ChartAnnotationLabelDefinition : DependencyObject

Inheritance: objectChartAnnotationLabelDefinition

Constructors

ChartAnnotationLabelDefinition()

Declaration

cs-api-definition
public ChartAnnotationLabelDefinition()

Fields

DefaultVisualStyleProperty

Identifies the DefaultVisualStyle property.

Declaration

cs-api-definition
public static readonly DependencyProperty DefaultVisualStyleProperty

Field Value

DependencyProperty

FormatProperty

Identifies the Format property.

Declaration

cs-api-definition
public static readonly DependencyProperty FormatProperty

Field Value

DependencyProperty

HorizontalAlignmentProperty

Identifies the HorizontalAlignment property.

Declaration

cs-api-definition
public static readonly DependencyProperty HorizontalAlignmentProperty

Field Value

DependencyProperty

HorizontalOffsetProperty

Identifies the HorizontalOffset property.

Declaration

cs-api-definition
public static readonly DependencyProperty HorizontalOffsetProperty

Field Value

DependencyProperty

LabelTemplateProperty

Identifies the Template property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelTemplateProperty

Field Value

DependencyProperty

LocationProperty

Identifies the Location property.

Declaration

cs-api-definition
public static readonly DependencyProperty LocationProperty

Field Value

DependencyProperty

VerticalAlignmentProperty

Identifies the VerticalAlignment property.

Declaration

cs-api-definition
public static readonly DependencyProperty VerticalAlignmentProperty

Field Value

DependencyProperty

VerticalOffsetProperty

Identifies the VerticalOffset property.

Declaration

cs-api-definition
public static readonly DependencyProperty VerticalOffsetProperty

Field Value

DependencyProperty

Properties

DefaultVisualStyle

Gets or sets the Style instance that defines the appearance of the default label visual - TextBlock instance.

Declaration

cs-api-definition
public Style DefaultVisualStyle { get; set; }

Property Value

Style

Format

Gets or sets the string used to format the label content, using the method.

Declaration

cs-api-definition
public string Format { get; set; }

Property Value

string

HorizontalAlignment

Gets or sets the horizontal alignment value that can be used as a secondary mechanism in conjunction with the primary Location property value.

Declaration

cs-api-definition
public HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

HorizontalAlignment

HorizontalAlignment property value is not applicable if Location property is set to either ChartAnnotationLabelLocation.Left, or ChartAnnotationLabelLocation.Right.

Remarks

Annotations provide a mechanism for label positioning that consists of three layers -- primary (Location), secondary (Horizontal/VerticalAlignment), and tertiary (Horizontal/VerticalOffset).

HorizontalOffset

Gets or sets the horizontal offset in pixels that can be specified besides the primary Location and the secondary HorizontalAlignment properties.

Declaration

cs-api-definition
public double HorizontalOffset { get; set; }

Property Value

double

Remarks

Annotations provide a mechanism for label positioning that consists of three layers -- primary (Location), secondary (Horizontal/VerticalAlignment), and tertiary (Horizontal/VerticalOffset).

LabelTemplate

Gets or sets the DataTemplate instance that may be used to define custom-looking label.

Declaration

cs-api-definition
public DataTemplate LabelTemplate { get; set; }

Property Value

DataTemplate

Location

Gets or sets the ChartAnnotationLabelLocation value that defines the primary location of the annotation label visual.

Declaration

cs-api-definition
public ChartAnnotationLabelLocation Location { get; set; }

Property Value

ChartAnnotationLabelLocation

Remarks

Annotations provide a mechanism for label positioning that consists of three layers -- primary (Location), secondary (Horizontal/VerticalAlignment), and tertiary (Horizontal/VerticalOffset).

VerticalAlignment

Gets or sets the vertical alignment value that can be used in conjunction with the primary Location property value.

Declaration

cs-api-definition
public VerticalAlignment VerticalAlignment { get; set; }

Property Value

VerticalAlignment

VerticalAlignment property value is not applicable if Location property is set to either ChartAnnotationLabelLocation.Top, or ChartAnnotationLabelLocation.Bottom.

Remarks

Annotations provide a mechanism for label positioning that consists of three layers -- primary (Location), secondary (Horizontal/VerticalAlignment), and tertiary (Horizontal/VerticalOffset).

VerticalOffset

Gets or sets the vertical offset in pixels that can be specified besides the primary Location and the secondary VerticalAlignment properties.

Declaration

cs-api-definition
public double VerticalOffset { get; set; }

Property Value

double

Remarks

Annotations provide a mechanism for label positioning that consists of three layers -- primary (Location), secondary (Horizontal/VerticalAlignment), and tertiary (Horizontal/VerticalOffset).