menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class Range

    Represents the range. To render this pointer, create an instance of the range class, and set required properties.

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

    Constructors

    Range()

    Initializes a new instance of the Range class to set required ranges properties in circular gauge.

    Declaration
    public Range()

    Fields

    ColorProperty

    Gets or sets the color property of the range. It customizes the color of an ranges. This is a bindable property.

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

    EndValueProperty

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

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

    GradientStopsProperty

    Gets or sets a collection of GradientColor property in circular range. It customizes the collection of gradient color of an ranges.

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

    InnerEndOffsetProperty

    Gets or sets the inner end offset value of ranges. It customizes the inner end position of ranges. This is a bindable property.

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

    InnerStartOffsetProperty

    Gets or sets the inner start offset value of ranges. It customizes the inner start position of ranges. This is a bindable property.

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

    OffsetProperty

    Gets or sets the offset value property of the ranges. It customizes the position of ranges for circular gauge.

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

    OuterEndOffsetProperty

    Gets or sets the outer end offset value of ranges. It customizes the outer end position of ranges. This is a bindable property.

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

    OuterStartOffsetProperty

    Gets or sets the outer start offset value of ranges. It customizes the outer start position of ranges. This is a bindable property.

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

    StartValueProperty

    Gets or sets the start value property of the range. It customizes the start value of an ranges. This is a bindable property.

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

    ThicknessProperty

    Gets or sets the thickness property of ranges. It customizes the thickness of an ranges. This is a bindable property.

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

    Properties

    Color

    Gets or sets the color of the range. It customizes the color for ranges. This is a bindable property.

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

    This property takes the Color value.

    Examples

    This sample shows how to set the Color of the range.

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

    EndValue

    Gets or sets the end value of a range. It customizes the end value of ranges. 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 range.

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

    GradientStops

    Gets or sets a collection of GradientColor in circular range. It customizes the collection of gradient color for ranges.

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

    InnerEndOffset

    Gets or sets the inner end offset value of the range. It customizes the inner end position of ranges. This is a bindable property.

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

    This property takes the System.Double value.

    Examples

    This sample shows how to set the InnerEndOffset of the range.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	Range range = new Range();
    	range.InnerEndOffset = 0.1;
    	scale.Ranges.Add(range);
    	gauge.Scales.Add(scale);
    }

    InnerStartOffset

    Gets or sets the inner start offset value of the range. It customizes the inner start position of an ranges. This is a bindable property.

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

    This property takes the System.Double value.

    Examples

    This sample shows how to set the OuterStartOffset of the range.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	Range range = new Range();
    	range.InnerStartOffset = 0.1;
    	scale.Ranges.Add(range);
    	gauge.Scales.Add(scale);
    }

    Offset

    Gets or sets the offset value of the range. It customizes the position of ranges. This is a bindable property.

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

    This property takes the System.Double value.

    Examples

    This sample shows how to set the Offset of the range.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	Range range = new Range();
    	range.Offset = 0.5;
    	scale.Ranges.Add(range);
    	gauge.Scales.Add(scale);
    }

    OuterEndOffset

    Gets or sets the outer end offset value of ranges. This property customizes the outer end position of ranges.

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

    This property takes the System.Double value.

    Examples

    This sample shows how to set the OuterEndOffset of the range.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	Range range = new Range();
    	range.OuterEndOffset = 0.1;
    	scale.Ranges.Add(range);
    	gauge.Scales.Add(scale);
    }

    OuterStartOffset

    Gets or sets the outer start offset value of ranges. It customizes the outer start position of ranges.

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

    This property takes the System.Double value.

    Examples

    This sample shows how to set the OuterStartOffset of the range.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	Range range = new Range();
    	range.OuterStartOffset = 0.1;
    	scale.Ranges.Add(range);
    	gauge.Scales.Add(scale);
    }

    StartValue

    Gets or sets the start value of the range. It customizes the start value ranges. 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 range.

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

    Thickness

    Gets or sets the thickness of the range. It customizes the thickness of an ranges. This is a bindable property.

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

    This property takes the System.Double value.

    Examples

    This sample shows how to set the Thickness of the range.

    void MyPage()
    {
    	SfCircularGauge gauge = new SfCircularGauge();
    	Scale scale = new Scale();
    	Range range = new Range();
    	range.Thickness = 10;
    	scale.Ranges.Add(range);
    	gauge.Scales.Add(scale);
    }

    Methods

    OnBindingContextChanged()

    Method ise used to set binding context.

    Declaration
    protected override void OnBindingContextChanged()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved