Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LinearPointer

    Show / Hide Table of Contents

    Class LinearPointer

    Represents LinearPointer in the linear gauge. To render this, create an instance of LinearPointer, and set required properties.

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

    Constructors

    LinearPointer()

    Initializes a new instance of the LinearPointer class to set required linear pointer properties in the linear gauge.

    Declaration
    public LinearPointer()

    Fields

    AnimationDurationProperty

    Gets or sets the animation duration of the pointer. It customizes the animation duration of an pointer. This is a bindable property.

    Declaration
    public static readonly BindableProperty AnimationDurationProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    ColorProperty

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

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

    EnableAnimationProperty

    Gets or sets a value that indicates whether the linear pointer is displayed with animation. This is a bindable property.

    Declaration
    public static readonly BindableProperty EnableAnimationProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    ThicknessProperty

    Gets or sets the Thickness property of the linear range. It customizes the thickness of an linear pointer for scale.

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

    ValueProperty

    Gets or sets the Value property of the linear pointer. It customizes the value of an linear pointer.

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

    Properties

    AnimationDuration

    Gets or sets the animation duration of the pointer. It customizes the animation duration of an pointer. This is a bindable property.

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

    Color

    Gets or sets the Color property of the linear range. It customizes the color of an linear pointer of scale.

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

    This property takes the Color as value.

    Examples

    This sample shows how to set the Color for the gauge.

    void MyPage()
    {
    	SfLinearGauge gauge = new SfLinearGauge();
    	LinearScale scale = new LinearScale();
    	LinearPointer pointer = new LinearPointer();
    	pointer.Color = Color.Red;
    	scale.Pointers.Add(range);
    	gauge.Scales.Add(scale);
    }

    EnableAnimation

    Gets or sets a value that indicates whether the linear pointer is displayed with animation. It customizes the animation.

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

    This property takes the System.Boolean as value.

    Examples

    This sample shows how to set the EnableAnimation for the gauge.

    void MyPage()
    {
    	SfLinearGauge gauge = new SfLinearGauge();
    	LinearScale scale = new LinearScale();
    	LinearPointer pointer = new LinearPointer();
    	pointer.EnableAnimation = true;
    	scale.Pointers.Add(range);
    	gauge.Scales.Add(scale);
    }

    Thickness

    Gets or sets the Thickness of the linear range. It customizes the thickness of an linear pointer for scale.

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

    This property takes the System.Double as value.

    Examples

    This sample shows how to set the Thickness for the gauge.

    void MyPage()
    {
    	SfLinearGauge gauge = new SfLinearGauge();
    	LinearScale scale = new LinearScale();
    	LinearPointer pointer = new LinearPointer();
    	pointer.Thickness = 10;
    	scale.Pointers.Add(range);
    	gauge.Scales.Add(scale);
    }

    Value

    Gets or sets the Value property of the linear pointer. It customizes the value of an linear pointer. This is a bindable property.

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

    This property takes the System.Double as value.

    Examples

    This sample shows how to set the Value for the gauge.

    void MyPage()
    {
    	SfLinearGauge gauge = new SfLinearGauge();
    	LinearScale scale = new LinearScale();
    	LinearPointer pointer = new LinearPointer();
    	pointer.Value = 10;
    	scale.Pointers.Add(range);
    	gauge.Scales.Add(scale);
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved