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
<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 |