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

Represents a text indicator for gauge controls that displays text content based on gauge values.

Definition

Constructors

Initializes a new instance of the GaugeTextIndicator class.

C#
public GaugeTextIndicator()

Fields

FontAttributesProperty

BindableProperty

Identifies the FontAttributes property.

C#
public static readonly BindableProperty FontAttributesProperty

FontFamilyProperty

BindableProperty

Identifies the FontFamily property.

C#
public static readonly BindableProperty FontFamilyProperty

FontSizeProperty

BindableProperty

Identifies the FontSize property.

C#
public static readonly BindableProperty FontSizeProperty

Identifies the HorizontalTextPlacement property.

C#
public static readonly BindableProperty HorizontalTextPlacementProperty

TextColorProperty

BindableProperty

Identifies the TextColor property.

C#
public static readonly BindableProperty TextColorProperty

TextMarginProperty

BindableProperty

Identifies the TextMargin property.

C#
public static readonly BindableProperty TextMarginProperty

TextProperty

BindableProperty

Identifies the Text property.

C#
public static readonly BindableProperty TextProperty

Identifies the VerticalTextPlacement property.

C#
public static readonly BindableProperty VerticalTextPlacementProperty

Properties

FontAttributes

FontAttributes

Gets or sets the font attributes of the text displayed by the indicator.

C#
public FontAttributes FontAttributes { get; set; }

Gets or sets the font family of the text displayed by the indicator.

C#
public string FontFamily { get; set; }

Gets or sets the font size of the text displayed by the indicator.

C#
public double FontSize { get; set; }

Gets or sets a value that indicates the horizontal placement of the text. This property is taken into consideration only when the indicator is in a radial or a horizontal gauge.

C#
public HorizontalPlacement HorizontalTextPlacement { get; set; }

Gets or sets the text content displayed by the indicator.

C#
public string Text { get; set; }

Gets or sets the color of the text displayed by the indicator.

C#
public Color TextColor { get; set; }

TextMargin

Thickness

Gets or sets the margin around the text content.

C#
public Thickness TextMargin { get; set; }

Gets or sets a value that indicates the vertical placement of the text. This property is taken into consideration only when the indicator is in a radial or a vertical gauge.

C#
public VerticalPlacement VerticalTextPlacement { get; set; }

Methods

Called when a property value changes.

C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

The name of the property that changed.