Class AxisLabelData
Represents information about the axis labels that associate a numeric value position for 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
<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>
Properties
Text
Gets or sets the text contents of the axis label.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
Examples
<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>
Value
Gets or sets the position value of the axis label.
Declaration
public double Value { get; set; }
Property Value
Type |
---|
System.Double |