New to Telerik UI for .NET MAUIStart a free 30-day trial

Defines the font and color appearance applied to text labels rendered by a ChartAxis (through LabelStyle) or a ChartSeries (through LabelStyle). Using a dedicated type (rather than individual properties) allows future additions (TextDecorations, LineHeight, etc.) without API churn.

Definition

Namespace:Telerik.Maui.Controls.Charts

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public sealed class ChartLabelAppearance : StyleableElement

Inheritance: objectChartLabelAppearance

Constructors

C#
public ChartLabelAppearance()

Fields

FontAttributesProperty

BindableProperty

Identifies the FontAttributes bindable property.

C#
public static readonly BindableProperty FontAttributesProperty

FontFamilyProperty

BindableProperty

Identifies the FontFamily bindable property.

C#
public static readonly BindableProperty FontFamilyProperty

FontSizeProperty

BindableProperty

Identifies the FontSize bindable property.

C#
public static readonly BindableProperty FontSizeProperty

TextColorProperty

BindableProperty

Identifies the TextColor bindable property.

C#
public static readonly BindableProperty TextColorProperty

Properties

FontAttributes

FontAttributes

Gets or sets the bold and/or italic styling applied to the label text. The default value is .

C#
public FontAttributes FontAttributes { get; set; }

Gets or sets the font family used to render the label text. The default value is the Telerik theme's default font, given by Name.

C#
public string FontFamily { get; set; }

Gets or sets the size, in points, of the label text. The value must be greater than 0; the default is 12.0.

C#
public double FontSize { get; set; }

Gets or sets the color of the label text. Set to null to use the color resolved from the owning axis or series, or the active theme when neither specifies one.

C#
public Color? TextColor { get; set; }