menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class GaugeLabelStyle

    Represents the style of gauge labels, that used to customize labels color, size, font family and font attribute.

    Inheritance
    System.Object
    GaugeLabelStyle
    Namespace: Syncfusion.Maui.Gauges
    Assembly: Syncfusion.Maui.Gauges.dll
    Syntax
    public class GaugeLabelStyle : Element, ITextElement, IThemeElement
    Examples
           <gauge:SfRadialGauge>
               <gauge:SfRadialGauge.Axes>
                   <gauge:RadialAxis>
                       <gauge:RadialAxis.AxisLabelStyle>
                           <gauge:GaugeLabelStyle FontSize="14" />
                       </gauge:RadialAxis.AxisLabelStyle>
                   </gauge:RadialAxis>
               </gauge:SfRadialGauge.Axes>
           </gauge:SfRadialGauge>

    Constructors

    GaugeLabelStyle()

    Initializes a new instance of the GaugeLabelStyle class.

    Declaration
    public GaugeLabelStyle()

    Fields

    FontAttributesProperty

    Identifies the FontAttributes bindable property.

    Declaration
    public static readonly BindableProperty FontAttributesProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for FontAttributes bindable property.

    FontAutoScalingEnabledProperty

    Identifies the FontAutoScalingEnabled bindable property.

    Declaration
    public static readonly BindableProperty FontAutoScalingEnabledProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for FontAutoScalingEnabled bindable property.

    FontFamilyProperty

    Identifies the FontFamily bindable property.

    Declaration
    public static readonly BindableProperty FontFamilyProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for FontFamily bindable property.

    FontSizeProperty

    Identifies the FontSize bindable property.

    Declaration
    public static readonly BindableProperty FontSizeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for FontSize bindable property.

    TextColorProperty

    Identifies the TextColor bindable property.

    Declaration
    public static readonly BindableProperty TextColorProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for TextColor bindable property.

    Properties

    FontAttributes

    Gets or sets FontAttributes of gauge label.

    Declaration
    public FontAttributes FontAttributes { get; set; }
    Property Value
    Type
    Microsoft.Maui.Controls.FontAttributes
    Examples
           <gauge:SfRadialGauge>
               <gauge:SfRadialGauge.Axes>
                   <gauge:RadialAxis>
                       <gauge:RadialAxis.AxisLabelStyle>
                           <gauge:GaugeLabelStyle FontAttributes="Bold" />
                       </gauge:RadialAxis.AxisLabelStyle>
                   </gauge:RadialAxis>
               </gauge:SfRadialGauge.Axes>
           </gauge:SfRadialGauge>

    FontAutoScalingEnabled

    Gets or sets a value that Determines whether or not the font of the control should scale automatically according to the operating system settings.

    Declaration
    public bool FontAutoScalingEnabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    It accepts Boolean values, and the default value is false.

    FontFamily

    Gets or sets string, that represents font family of gauge label.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type
    System.String

    FontSize

    Gets or sets double value that represents size of gauge label.

    Declaration
    public double FontSize { get; set; }
    Property Value
    Type
    System.Double
    Examples
           <gauge:SfRadialGauge>
               <gauge:SfRadialGauge.Axes>
                   <gauge:RadialAxis>
                       <gauge:RadialAxis.AxisLabelStyle>
                           <gauge:GaugeLabelStyle FontSize="14" />
                       </gauge:RadialAxis.AxisLabelStyle>
                   </gauge:RadialAxis>
               </gauge:SfRadialGauge.Axes>
           </gauge:SfRadialGauge>

    TextColor

    Gets or sets Color, that represents the gauge label color.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type
    Microsoft.Maui.Graphics.Color
    Examples
           <gauge:SfRadialGauge>
               <gauge:SfRadialGauge.Axes>
                   <gauge:RadialAxis>
                       <gauge:RadialAxis.AxisLabelStyle>
                           <gauge:GaugeLabelStyle TextColor="Red" />
                       </gauge:RadialAxis.AxisLabelStyle>
                   </gauge:RadialAxis>
               </gauge:SfRadialGauge.Axes>
           </gauge:SfRadialGauge>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved