menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GaugeLabelInfo - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GaugeLabelInfo

    Represents information about the axis labels that associate a numeric value position for major scale tick marks.

    Inheritance
    System.Object
    GaugeLabelInfo
    Namespace: Syncfusion.Maui.Gauges
    Assembly: Syncfusion.Maui.Gauges.dll
    Syntax
    public class GaugeLabelInfo : Object
    Examples
    public class RadialAxisExt : RadialAxis
    {
        public override List<GaugeLabelInfo> GenerateVisibleLabels()
        {
            List<GaugeLabelInfo> customLabels = new List<GaugeLabelInfo>();
            for (int i = 0; i < 9; i++)
            {
                double value = i;
                GaugeLabelInfo label = new GaugeLabelInfo
                {
                    Value = value,
                    Text = value.ToString()
                };
                customLabels.Add(label);
            }
    
            return customLabels;
        }
    }

    Constructors

    GaugeLabelInfo()

    Initializes a new instance of the GaugeLabelInfo class.

    Declaration
    public GaugeLabelInfo()
    Examples
    • XAML
    • C#
    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <local:RadialAxisExt Minimum="0"
                                 Maximum="150"
                                 ShowTicks="False"
                                 AxisLineWidthUnit="Factor"
                                 AxisLineWidth="0.15">
            </local:RadialAxisExt>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>
    public class RadialAxisExt : RadialAxis
    {
        public override List<GaugeLabelInfo> GenerateVisibleLabels()
        {
            List<GaugeLabelInfo> customLabels = new List<GaugeLabelInfo>();
            for (int i = 0; i < 9; i++)
            {
                double value = i;
                GaugeLabelInfo label = new GaugeLabelInfo
                {
                    Value = value,
                    Text = value.ToString()
                };
                customLabels.Add(label);
            }
    
            return customLabels;
        }
    }

    Properties

    Text

    Gets or sets the text contents of the axis label.

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    System.String
    Examples
    • XAML
    • C#
    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <local:RadialAxisExt Minimum = "0"
                                 Maximum="150"
                                 ShowTicks="False"
                                 AxisLineWidthUnit="Factor"
                                 AxisLineWidth="0.15">
            </local:RadialAxisExt>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>
    public class RadialAxisExt : RadialAxis
    {
        public override List<GaugeLabelInfo> GenerateVisibleLabels()
        {
            List<GaugeLabelInfo> customLabels = new List<GaugeLabelInfo>();
            for (int i = 0; i < 9; i++)
            {
                double value = i;
                GaugeLabelInfo label = new GaugeLabelInfo
                {
                    Value = value,
                    Text = value.ToString()
                };
                customLabels.Add(label);
            }
    
            return customLabels;
        }
    }

    Value

    Gets or sets the position value of the axis label.

    Declaration
    public double Value { get; set; }
    Property Value
    Type
    System.Double
    Examples
    • XAML
    • C#
    <gauge:SfRadialGauge>
        <gauge:SfRadialGauge.Axes>
            <local:RadialAxisExt Minimum = "0"
                                 Maximum="150"
                                 ShowTicks="False"
                                 AxisLineWidthUnit="Factor"
                                 AxisLineWidth="0.15">
            </local:RadialAxisExt>
        </gauge:SfRadialGauge.Axes>
    </gauge:SfRadialGauge>
    public class RadialAxisExt : RadialAxis
    {
        public override List<GaugeLabelInfo> GenerateVisibleLabels()
        {
            List<GaugeLabelInfo> customLabels = new List<GaugeLabelInfo>();
            for (int i = 0; i < 9; i++)
            {
                double value = i;
                GaugeLabelInfo label = new GaugeLabelInfo
                {
                    Value = value,
                    Text = value.ToString()
                };
                customLabels.Add(label);
            }
    
            return customLabels;
        }
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved