menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class GaugeAnnotation

    Represents the gauge annotation. To render this annotation, create an instance GaugeAnnotation, and set required properties.

    Inheritance
    System.Object
    GaugeAnnotation
    Namespace: Syncfusion.SfGauge.XForms
    Assembly: Syncfusion.SfGauge.XForms.dll
    Syntax
    public class GaugeAnnotation : BindableObject

    Constructors

    GaugeAnnotation()

    Initializes a new instance of the GaugeAnnotation class. You can add custom view for gauge scale using gauge annotation.

    Declaration
    public GaugeAnnotation()

    Fields

    AngleProperty

    Gets or sets the angle value for circular gauge annotation. Angle is used to place the annotation with given angle.

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

    HorizontalAlignmentProperty

    Gets or sets the HorizontalAlignment position of the annotation. It aligns the annotation to the start, center or end in horizontal position.

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

    OffsetProperty

    Gets or sets the position of the annotation. The property is used to move the view from the center to edge of the circular gauge.

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

    VerticalAlignmentProperty

    Gets or sets the VerticalAlignment position of the annotation. It aligns the annotation to the start, center, or end in vertical position.

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

    ViewMarginProperty

    Gets or sets the ViewMargin property of the annotation. This property is used to set margin for gauge annotation.

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

    ViewProperty

    Gets or sets the view property of the annotation. You can set different type of view for circular gauge annotation.

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

    Properties

    Angle

    Gets or sets the angle value for circular gauge annotation. Angle is used to place the annotation with given angle.

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

    HorizontalAlignment

    Gets or sets the HorizontalAlignment position of the annotation. It aligns the annotation to the start, center, or end in horizontal position.

    Declaration
    public ViewAlignment HorizontalAlignment { get; set; }
    Property Value
    Type
    ViewAlignment

    Offset

    Gets or sets the position of the annotation. It moves the view from the center to edge of the circular gauge. The value should range between 0 and 1.

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

    VerticalAlignment

    Gets or sets the VerticalAlignment position of the annotation. It aligns the annotation to the start, center, or end in vertical position.

    Declaration
    public ViewAlignment VerticalAlignment { get; set; }
    Property Value
    Type
    ViewAlignment

    View

    Gets or sets the view of the annotation. You can set different type of view for circular gauge annotation.

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

    ViewMargin

    Gets or sets the ViewMargin of the annotation. This property is used to set margin for gauge annotation.

    Declaration
    public Point ViewMargin { get; set; }
    Property Value
    Type
    Xamarin.Forms.Point
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved