WinUI

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AxisLabelData - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AxisLabelData

    It helps the user to display scale labels that associate a numeric value with major scale tick marks.

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

    Constructors

    AxisLabelData()

    Initializes a new instance of the AxisLabelData class.

    Declaration
    public AxisLabelData()
    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<AxisLabelData> GenerateVisibleLabels()
        {
            List<AxisLabelData> customLabels = new List<AxisLabelData>();
            for (int i = 0; i < 9; i++)
            {
                double value = i;
                AxisLabelData label = new AxisLabelData
                {
                    Value = value,
                    Text = value.ToString()
                };
                customLabels.Add(label);
            }
    
            return customLabels;
        }
    }

    Properties

    Text

    Gets or sets the text to display in label.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    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<AxisLabelData> GenerateVisibleLabels()
        {
            List<AxisLabelData> customLabels = new List<AxisLabelData>();
            for (int i = 0; i < 9; i++)
            {
                double value = i;
                AxisLabelData label = new AxisLabelData
                {
                    Value = value,
                    Text = value.ToString()
                };
                customLabels.Add(label);
            }
    
            return customLabels;
        }
    }

    Value

    Gets or sets the value of the label.

    Declaration
    public double Value { get; set; }
    Property Value
    Type Description
    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<AxisLabelData> GenerateVisibleLabels()
        {
            List<AxisLabelData> customLabels = new List<AxisLabelData>();
            for (int i = 0; i < 9; i++)
            {
                double value = i;
                AxisLabelData label = new AxisLabelData
                {
                    Value = value,
                    Text = value.ToString()
                };
                customLabels.Add(label);
            }
    
            return customLabels;
        }
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved