menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class SfDigitalGauge

    Represents a root class for the digital gauge control. This class is used to add character adn types.

    Inheritance
    System.Object
    SfDigitalGauge
    Namespace: Syncfusion.SfGauge.XForms
    Assembly: Syncfusion.SfGauge.XForms.dll
    Syntax
    public class SfDigitalGauge : View, IParentThemeElement, IThemeElement

    Constructors

    SfDigitalGauge()

    Initializes a new instance of the SfDigitalGauge class. Represents the root class. To render this class, create a new instance of the SfDigitalGauge class.

    Declaration
    public SfDigitalGauge()

    Fields

    CharacterHeightProperty

    Gets or sets the character height of the digital gauge. It customizes the character height for digital gauge. This is a bindable property.

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

    CharacterSpacingProperty

    Gets or sets the character spacing of the digital gauge. It specifies the spacing between the characters. This is a bindable property.

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

    CharacterStrokeColorProperty

    Gets or sets the character stroke color of the digital gauge. It customizes the stroke color of an character.

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

    CharacterTypeProperty

    Gets or sets the CharacterType of the digital gauge. It customizes the character type of the digital gauge. This is a bindable property.

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

    CharacterWidthProperty

    Gets or sets the character width of the digital gauge. It customizes the character width for the digital gauge. This is a bindable property.

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

    DisabledSegmentAlphaProperty

    Gets or sets the disable segment alpha of the digital gauge. It customizes the color of a segment. This is a bindable property.

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

    DisabledSegmentColorProperty

    Gets or sets the character height of the digital gauge. It customizes the character height for digital gauge. This is a bindable property.

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

    SegmentStrokeWidthProperty

    Gets or sets the segment stroke width of the digital gauge. It customizes the stroke width of a segment. This is a bindable property.

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

    ValueProperty

    Gets or sets the value of the digital gauge. It specifies the text to display the characters of gauge. This is a bindable property.

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

    Properties

    CharacterHeight

    Gets or sets the character height of the digital gauge. It customizes the character height for the digital gauge.

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

    This property takes the System.Double value.

    Examples

    This sample shows how to set the CharacterHeight of the digital gauge.

    void MyPage()
    {
    	SfDigitalGauge gauge = new SfDigitalGauge();
    	gauge.CharacterHeight = 30;
    }

    CharacterSpacing

    Gets or sets the character spacing of the digital gauge. It specifies the spacing between the characters.

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

    This property takes the System.Double value.

    Examples

    This sample shows how to set the CharacterSpacing of the digital gauge.

    void MyPage()
    {
    	SfDigitalGauge gauge = new SfDigitalGauge();
    	gauge.CharacterSpacing = 4;
    }

    CharacterStrokeColor

    Gets or sets the character stroke color of the digital gauge. It customizes the stroke color of a character. This is a bindable property.

    Declaration
    public Color CharacterStrokeColor { 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 CharacterStrokeColor of the digital gauge.

    void MyPage()
    {
    	SfDigitalGauge gauge = new SfDigitalGauge();
    	gauge.CharacterStrokeColor = Color.Red;
    }

    CharacterType

    Gets or sets the CharacterType of the digital gauge. It customizes the character type of digital gauge.

    Declaration
    public CharacterType CharacterType { get; set; }
    Property Value
    Type Description
    CharacterType

    This property takes the CharacterType value.

    Examples

    This sample shows how to set the CharacterType of the digital gauge.

    void MyPage()
    {
    	SfDigitalGauge gauge = new SfDigitalGauge();
    	gauge.CharacterType = CharacterType.SegmentSeven;
    }

    CharacterWidth

    Gets or sets the character width of the digital gauge. It customizes the character width for digital gauge.

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

    This property takes the System.Double value.

    Examples

    This sample shows how to set the CharacterWidth of the digital gauge.

    void MyPage()
    {
    	SfDigitalGauge gauge = new SfDigitalGauge();
    	gauge.CharacterWidth = 10;
    }

    DisabledSegmentAlpha

    Gets or sets the disable segment alpha of the digital gauge. It customizes the color of the segment.

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

    This property takes the System.Int32 value.

    Examples

    This sample shows how to set the DisabledSegmentAlpha of the digital gauge.

    void MyPage()
    {
    	SfDigitalGauge gauge = new SfDigitalGauge();
    	gauge.DisabledSegmentAlpha = 1";
    }

    DisabledSegmentColor

    Gets or sets the disabled segment color of the digital gauge. It customizes the disabled color of a segment.

    Declaration
    public Color DisabledSegmentColor { 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 DisabledSegmentColor of the digital gauge.

    void MyPage()
    {
    	SfDigitalGauge gauge = new SfDigitalGauge();
    	gauge.DisabledSegmentAlpha = Color.Red;
    }

    SegmentStrokeWidth

    Gets or sets the segment stroke width of the digital gauge. It customizes the stroke width of an segment.

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

    This property takes the System.Double value.

    Examples

    This sample shows how to set the SegmentStrokeWidth of the digital gauge.

    void MyPage()
    {
    	SfDigitalGauge gauge = new SfDigitalGauge();
    	gauge.SegmentStrokeWidth = 10;
    }

    Value

    Gets or sets the value of the digital gauge. It specifies the text to display the characters of gauge.

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

    This property takes the System.String value.

    Examples

    This sample shows how to set the Value of the digital gauge.

    void MyPage()
    {
    	SfDigitalGauge gauge = new SfDigitalGauge();
    	gauge.Value = "SYNCFUSION";
    }

    Methods

    add_ValueChanged(SfDigitalGauge.ValueChangedEventHandler)

    Declaration
    public void add_ValueChanged(SfDigitalGauge.ValueChangedEventHandler value)
    Parameters
    Type Name Description
    SfDigitalGauge.ValueChangedEventHandler value

    OnSizeRequest(Double, Double)

    Method used to set size for digital gauge.

    Declaration
    protected override SizeRequest OnSizeRequest(double widthConstraint, double heightConstraint)
    Parameters
    Type Name Description
    System.Double widthConstraint

    Width constraint.

    System.Double heightConstraint

    Height constraint.

    Returns
    Type Description
    Xamarin.Forms.SizeRequest

    SizeRequest.

    remove_ValueChanged(SfDigitalGauge.ValueChangedEventHandler)

    Declaration
    public void remove_ValueChanged(SfDigitalGauge.ValueChangedEventHandler value)
    Parameters
    Type Name Description
    SfDigitalGauge.ValueChangedEventHandler value

    Events

    ValueChanged

    Occurs when value changed.

    Declaration
    public event SfDigitalGauge.ValueChangedEventHandler ValueChanged
    Event Type
    Type
    SfDigitalGauge.ValueChangedEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved