menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Scale - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Scale

    Implements the properties of scale, which integrates labels, tick marks, and a rim of the circular gauge.

    Inheritance
    System.Object
    Scale
    Namespace: Syncfusion.SfGauge.XForms
    Assembly: Syncfusion.SfGauge.XForms.dll
    Syntax
    public class Scale : Element, IThemeElement

    Constructors

    Scale()

    Initializes a new instance of the Scale class to set required header properties in the circular scale.

    Declaration
    public Scale()

    Fields

    CustomLabelsProperty

    Gets or sets custom labels property for circular scale. It draws the labels and ticks based on custom labels.

    Declaration
    public static readonly BindableProperty CustomLabelsProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    DirectionProperty

    Gets or sets the direction property of the scale. It changes the direction in clockwise or anticlockwise direction.

    Declaration
    public static readonly BindableProperty DirectionProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    EnableAutoAngleProperty

    Gets or sets a value that indicates whether the angle is auto angle or not. It renders the circular scale based on auto angle. This is a bindable property.

    Declaration
    public static readonly BindableProperty EnableAutoAngleProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    EnableAutoIntervalProperty

    Gets or sets a value that indicates whether the interval property should be calculated based on maximum labels or not.

    Declaration
    public static readonly BindableProperty EnableAutoIntervalProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    EndValueProperty

    Gets or sets the end value of the scale. It customizes the end value for scale. This is a bindable property.

    Declaration
    public static readonly BindableProperty EndValueProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    FontAttributesProperty

    Gets or sets font attributes property of the circular scale. It changes the font style for the circular gauge.

    Declaration
    public static readonly BindableProperty FontAttributesProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    FontFamilyProperty

    Gets or sets the font family property of the text. It changes the font family of scale text in circular gauge. This is a bindable property.

    Declaration
    public static readonly BindableProperty FontFamilyProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    IntervalProperty

    Gets or sets the interval between the ticks of the scale. It customizes the interval of an scale. This is a bindable property.

    Declaration
    public static readonly BindableProperty IntervalProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    LabelColorProperty

    Gets or sets the LabelColor property of the circular scale. It changes the label color for circular scale. This is a bindable property.

    Declaration
    public static readonly BindableProperty LabelColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    LabelFontProperty

    Gets or sets the LabelFont property of the circular scale. It changes the label font for circular scale. This is a bindable property.

    Declaration
    public static readonly BindableProperty LabelFontProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    LabelFontSizeProperty

    Gets or sets the LabelFontSize property of the circular scale. It changes the font of label for circular scale.

    Declaration
    public static readonly BindableProperty LabelFontSizeProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    LabelOffsetProperty

    Gets or sets the label offset property value of the scale. It customizes the offset value for label. This is a bindable property.

    Declaration
    public static readonly BindableProperty LabelOffsetProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    LabelPostfixProperty

    Gets or sets the label postfix value of the scale. It postfixes the values to scale labels. This is a bindable property.

    Declaration
    public static readonly BindableProperty LabelPostfixProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    LabelPrefixProperty

    Gets or sets the label prefix property value of the scale. It prefixes the values to scale labels. This is a bindable property.

    Declaration
    public static readonly BindableProperty LabelPrefixProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    MajorTickSettingsProperty

    Gets or sets the MajorTickSettings of the circular scale. It customizes the major ticks of the circular scale. This is a bindable property.

    Declaration
    public static readonly BindableProperty MajorTickSettingsProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    MaximumLabelsProperty

    Gets or sets the MaximumLabels of the circular scale. It shows the maximum labels of the circular scale.

    Declaration
    public static readonly BindableProperty MaximumLabelsProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    MinorTickSettingsProperty

    Gets or sets the MinorTickSettings property of the circular scale. It customizes the minor ticks of the circular scale.

    Declaration
    public static readonly BindableProperty MinorTickSettingsProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    MinorTicksPerIntervalProperty

    Gets or sets the MinorTicksPerInterval property of the circular scale. The default interval property of scale is auto interval. This is bindable property.

    Declaration
    public static readonly BindableProperty MinorTicksPerIntervalProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    NumberOfDecimalDigitsProperty

    Gets or sets the number of decimal digits property of the label of the scale. It displays number of digits in label.

    Declaration
    public static readonly BindableProperty NumberOfDecimalDigitsProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    PointersProperty

    Gets or sets the pointers property of the circular scale. It adds or removes the pointers from collection. This is a bindable property.

    Declaration
    public static readonly BindableProperty PointersProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    RadiusFactorProperty

    Gets or sets the radius factor property of scales. It customizes the radius factor of the circular scale.

    Declaration
    public static readonly BindableProperty RadiusFactorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    RangesProperty

    Gets or sets a collection of the ranges property in circular scale. It sets multiple ranges for circular scale.

    Declaration
    public static readonly BindableProperty RangesProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    RimColorProperty

    Gets or sets the color property of the rim of the scale. It customizes the color of the rim. This is a bindable property.

    Declaration
    public static readonly BindableProperty RimColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    RimThicknessProperty

    Gets or sets the thickness property of the rim of the scale. It customizes the thickness of rim. This is a bindable property.

    Declaration
    public static readonly BindableProperty RimThicknessProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ScaleEndOffsetProperty

    Gets or sets the ScaleEndOffset property value of the scale. It customizes the scale end offset value.

    Declaration
    public static readonly BindableProperty ScaleEndOffsetProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ScaleStartOffsetProperty

    Gets or sets the ScaleStartOffset property value of the scale. It customizes the scale start offset value.

    Declaration
    public static readonly BindableProperty ScaleStartOffsetProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ShowFirstLabelProperty

    Gets or sets the show first label property value of the scale. It decieds to show whether the first label or not.

    Declaration
    public static readonly BindableProperty ShowFirstLabelProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ShowLabelsProperty

    Gets or sets the show labels property value of the scale. It decides to show whether the labels or not. This is a bindable property.

    Declaration
    public static readonly BindableProperty ShowLabelsProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ShowLastLabelProperty

    Gets or sets the show last label property value of the scale. It decies to show whether the last label or not.

    Declaration
    public static readonly BindableProperty ShowLastLabelProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ShowRimProperty

    Gets or sets a value that indicates whether to show the rim or not. It customizes the visibility of gauge rim. This is a bindable property.

    Declaration
    public static readonly BindableProperty ShowRimProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ShowTicksProperty

    Gets or sets a value that indicates whether to show the ticks or not. It customizes the visibility of scale ticks. This is a bindable property.

    Declaration
    public static readonly BindableProperty ShowTicksProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    StartAngleProperty

    Gets or sets the start angle property value of the scale. It customizes the start angle for scale. This is a bindable property.

    Declaration
    public static readonly BindableProperty StartAngleProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    StartValueProperty

    Gets or sets the start value property of the scale. It customizes the start value for scale. This is a bindable property.

    Declaration
    public static readonly BindableProperty StartValueProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    SweepAngleProperty

    Gets or sets the sweep angle property value of the scale. It customizes the sweep angle for scale. This is a bindable property.

    Declaration
    public static readonly BindableProperty SweepAngleProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    UseRangeColorForLabelsProperty

    Gets or sets a value that indicates whether to use the same color applied for range color as labels. This is a bindable property.

    Declaration
    public static readonly BindableProperty UseRangeColorForLabelsProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    Properties

    CustomLabels

    Gets or sets custom labels for the circular scale. It draws the labels and ticks based on custom labels.

    Declaration
    public double[] CustomLabels { get; set; }
    Property Value
    Type
    System.Double[]

    Direction

    Gets or sets the direction of the scale. It changes the direction in clockwise or anticlockwise direction.

    Declaration
    public ScaleDirection Direction { get; set; }
    Property Value
    Type Description
    ScaleDirection

    This property takes the enum value.

    Examples

    This sample shows how to set the direction of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.Direction = ScaleDirection.AntiClockWise;
    	gauge.Scales.Add(scale);
    }

    EnableAutoAngle

    Gets or sets a value that indicates whether the angle is auto angle or not. It renders the scale based on auto angle. This is a bindable property.

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

    This property takes the System.Boolean value.

    Examples

    This sample shows how to set the EnabeAutoAngle of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.EnabeAutoAngle = true;
    	gauge.Scales.Add(scale);
    }

    EnableAutoInterval

    Gets or sets a value that indicates whether the interval should be calculated based on maximum labels or not.

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

    EndValue

    Gets or sets the end value of the scale. It customizes the end value for scale. This is a bindable property.

    Declaration
    public double EndValue { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the EndValue of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.EndValue = 100;
    	gauge.Scales.Add(scale);
    }

    FontAttributes

    Gets or sets the font attributes for the circular scale. It changes the font style for the circular gauge.

    Declaration
    public FontAttributes FontAttributes { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.FontAttributes

    This property takes the FontAttributesvalue.

    FontFamily

    Gets or sets the font family of the text. It changes the font family of scale text in circular gauge. This is a bindable property.

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

    The font family of the text.

    Interval

    Gets or sets the interval value between the ticks of the scale. It customizes the interval of an scale.

    Declaration
    public double Interval { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the Interval of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.Interval = 10;
    	gauge.Scales.Add(scale);
    }

    LabelColor

    Gets or sets the LabelColor of the circular scale. It changes the label color for circular scale. This is a bindable property.

    Declaration
    public Color LabelColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    This property takes the Xamarin.Forms.Color value.

    Examples

    This sample shows how to set the LabelColor of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.LabelColor = Color.Red;
    	gauge.Scales.Add(scale);
    }

    LabelFont

    Gets or sets the LabelFont of the circular scale. It changes the label font for circular scale. This is a bindable property.

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

    This property takes the System.String value.

    Examples

    This sample shows how to set the LabelFont of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.LabelFont = "Arial";
    	gauge.Scales.Add(scale);
    }

    LabelFontSize

    Gets or sets the LabelFontSize property of the circular scale. It changes the font of label for circular scale.

    Declaration
    public double LabelFontSize { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the LabelFontSize of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.LabelFontSize = 10;
    	gauge.Scales.Add(scale);
    }

    LabelOffset

    Gets or sets the label offset value of scales. It customizes the offset value for label. This is a bindable property.

    Declaration
    public double LabelOffset { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the LabelOffset of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.LabelOffset = 0.7;
    	gauge.Scales.Add(scale);
    }

    LabelPostfix

    Gets or sets the label postfix value of the scale. It postfixes the values to scale labels. This is a bindable property.

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

    This property takes the System.String value.

    Examples

    This sample shows how to set the LabelPostfix of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.LabelPostfix = "%";
    	gauge.Scales.Add(scale);
    }

    LabelPrefix

    Gets or sets the label prefix value of the scale. It prefixes the values to scale labels. This is a bindable property.

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

    This property takes the System.String value.

    Examples

    This sample shows how to set the LabelPrefix of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.LabelPrefix = "$";
    	gauge.Scales.Add(scale);
    }

    MajorTickSettings

    Gets or sets the MajorTickSettings of the circular scale. It customizes the major ticks of the circular scale.

    Declaration
    public TickSettings MajorTickSettings { get; set; }
    Property Value
    Type Description
    TickSettings

    This property takes the TickSettings value.

    Examples

    This sample shows how to set the MajorTickSettings of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.MajorTickSettings = new TickSettings();
    	gauge.Scales.Add(scale);
    }

    MaximumLabels

    Gets or sets the MaximumLabels of the circular scale. Used to show the maximum labels of circular scale. This is a bindable property.

    Declaration
    public int MaximumLabels { get; set; }
    Property Value
    Type
    System.Int32

    MinorTickSettings

    Gets or sets the MinorTickSettings of the circular scale. It customizes the minor ticks of the circular scale.

    Declaration
    public TickSettings MinorTickSettings { get; set; }
    Property Value
    Type Description
    TickSettings

    This property takes the TickSettings value.

    Examples

    This sample shows how to set the MinorTickSettings of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.MinorTickSettings = new TickSettings();
    	gauge.Scales.Add(scale);
    }

    MinorTicksPerInterval

    Gets or sets the MinorTicksPerInterval of the circular scale. The default interval property of scale is auto interval.

    Declaration
    public double MinorTicksPerInterval { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the MinorTicksPerInterval of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.MinorTicksPerInterval = 3;
    	gauge.Scales.Add(scale);
    }

    NumberOfDecimalDigits

    Gets or sets the number of decimal digits of the label of the scale. It displays the number of digits in label. This is a bindable property.

    Declaration
    public int NumberOfDecimalDigits { get; set; }
    Property Value
    Type Description
    System.Int32

    This property takes the System.Int32 value.

    Examples

    This sample shows how to set the NumberOfDecimalDigits of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.NumberOfDecimalDigits = 2;
    	gauge.Scales.Add(scale);
    }

    Pointers

    Gets or sets the pointers of the circular scale. It adds or removes the pointers from collection. This is a bindable property.

    Declaration
    public ObservableCollection<Pointer> Pointers { get; set; }
    Property Value
    Type
    System.Collections.ObjectModel.ObservableCollection<Pointer>

    RadiusFactor

    Gets or sets the radius factor of the scale. It customizes the radius factor of the circular scale. This is a bindable property.

    Declaration
    public double RadiusFactor { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the RadiusFactor of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.RadiusFactor = 0.8;
    	gauge.Scales.Add(scale);
    }

    Ranges

    Gets or sets a collection of the ranges in circular scale. It sets multiple ranges for circular scale. This is a bindable property.

    Declaration
    public ObservableCollection<Range> Ranges { get; set; }
    Property Value
    Type
    System.Collections.ObjectModel.ObservableCollection<Range>

    RimColor

    Gets or sets the color of the rim of the scale. It customizes the color of the rim. This is a bindable property.

    Declaration
    public Color RimColor { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Color

    This property takes the Xamarin.Forms.Color value.

    Examples

    This sample shows how to set the RimColor of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.RimColor = Color.Red;
    	gauge.Scales.Add(scale);
    }

    RimThickness

    Gets or sets the thickness of the rim of the scale. It customizes the thickness of rim. This is a bindable property.

    Declaration
    public double RimThickness { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the RimThickness of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.RimThickness = 10;
    	gauge.Scales.Add(scale);
    }

    ScaleEndOffset

    Gets or sets the ScaleEndOffset value of the scale. It customizes the scale end offset value. This is a bindable property.

    Declaration
    public double ScaleEndOffset { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the ScaleEndOffset of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.ScaleEndOffset = 0.95;
    	gauge.Scales.Add(scale);
    }

    ScaleStartOffset

    Gets or sets the ScaleStartOffset value of the scale. It customizes the scale start offset value. This is a bindable property.

    Declaration
    public double ScaleStartOffset { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the ScaleStartOffset of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.ScaleStartOffset = 1;
    	gauge.Scales.Add(scale);
    }

    ShowFirstLabel

    Gets or sets the show first label value of the scale. It decides to show whether the first label or not. This is a bindable property.

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

    This property takes the System.Boolean value.

    Examples

    This sample shows how to set the ShowFirstLabel of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.ShowFirstLabel = true;
    	gauge.Scales.Add(scale);
    }

    ShowLabels

    Gets or sets the show labels value of the scale. It decides to show whether the labels or not. This is a bindable property.

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

    This property takes the System.Boolean value.

    Examples

    This sample shows how to set the ShowLabels of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.ShowLabels = true;
    	gauge.Scales.Add(scale);
    }

    ShowLastLabel

    Gets or sets the show last label value of the scale. It decides to show whether the last label or not. This is a bindable property.

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

    This property takes the System.Boolean value.

    Examples

    This sample shows how to set the ShowLastLabel of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.ShowLastLabel = true;
    	gauge.Scales.Add(scale);
    }

    ShowRim

    Gets or sets a value that indicates whether to show the rim or not. It customizes the visibility of gauge rim. This is a bindable property.

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

    This property takes the System.Boolean value.

    Examples

    This sample shows how to set the ShowRim of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.ShowRim = true;
    	gauge.Scales.Add(scale);
    }

    ShowTicks

    Gets or sets whether to show the ticks or not. It customizes the visibility of ticks. This is a bindable property.

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

    This property takes the System.Boolean value.

    Examples

    This sample shows how to set the ShowTicks of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.ShowTicks = true;
    	gauge.Scales.Add(scale);
    }

    StartAngle

    Gets or sets the start angle value of the scale. It customizes the start angle for scale. This is a bindable property.

    Declaration
    public double StartAngle { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the StartAngle of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.StartAngle = 10;
    	gauge.Scales.Add(scale);
    }

    StartValue

    Gets or sets the start value of the scale. It customizes the start value for scale. This is a bindable property.

    Declaration
    public double StartValue { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the StartValue of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.StartValue = 10;
    	gauge.Scales.Add(scale);
    }

    SweepAngle

    Gets or sets the sweep angle value of the scale. It customizes the sweep angle for scale. This is a bindable property.

    Declaration
    public double SweepAngle { get; set; }
    Property Value
    Type Description
    System.Double

    This property takes the System.Double value.

    Examples

    This sample shows how to set the SweepAngle of the scale.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	scale.SweepAngle = 270;
    	gauge.Scales.Add(scale);
    }

    UseRangeColorForLabels

    Gets or sets a value that indicates whether to use the same color applied for range color as labels.

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

    Methods

    add_LabelCreated(Scale.LabelCreatedEventHandler)

    Declaration
    public void add_LabelCreated(Scale.LabelCreatedEventHandler value)
    Parameters
    Type Name Description
    Scale.LabelCreatedEventHandler value

    OnBindingContextChanged()

    Method used to binding context.

    Declaration
    protected override void OnBindingContextChanged()

    remove_LabelCreated(Scale.LabelCreatedEventHandler)

    Declaration
    public void remove_LabelCreated(Scale.LabelCreatedEventHandler value)
    Parameters
    Type Name Description
    Scale.LabelCreatedEventHandler value

    Events

    LabelCreated

    Event that is raised when the label is created

    Declaration
    public event Scale.LabelCreatedEventHandler LabelCreated
    Event Type
    Type
    Scale.LabelCreatedEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved