Xamarin.Android

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

    Show / Hide Table of Contents

    Class SfLinearGauge

    Represents the linear gauge

    Inheritance
    System.Object
    SfLinearGauge
    Namespace: Com.Syncfusion.Gauges.SfLinearGauge
    Assembly: Syncfusion.SfGauge.Android.dll
    Syntax
    public class SfLinearGauge : FrameLayout

    Constructors

    SfLinearGauge(Context)

    Initializes a new instance of the SfLinearGauge class.

    Declaration
    public SfLinearGauge(Context context)
    Parameters
    Type Name Description
    Android.Content.Context context

    To get the Context

    SfLinearGauge(Context, IAttributeSet)

    Initializes a new instance of the SfLinearGauge class .

    Declaration
    public SfLinearGauge(Context context, IAttributeSet attrs)
    Parameters
    Type Name Description
    Android.Content.Context context

    to get context

    Android.Util.IAttributeSet attrs

    to get attributes

    Properties

    Annotations

    Gets or sets the collection of annotations.

    Declaration
    public LinearGaugeAnnotationCollection Annotations { get; set; }
    Property Value
    Type Description
    LinearGaugeAnnotationCollection

    Header

    Gets or sets Gauge header

    Declaration
    public LinearLabel Header { get; set; }
    Property Value
    Type Description
    LinearLabel

    Scales

    Gets or sets Collection of Scales

    Declaration
    public ObservableCollection<LinearScale> Scales { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<LinearScale>

    Methods

    Dispose(Boolean)

    dispose the objects

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    to get dispose objects

    GetOrientation()

    To get orientation

    Declaration
    public SfLinearGauge.Orientation GetOrientation()
    Returns
    Type Description
    SfLinearGauge.Orientation

    returns the orientation

    OnLayout(Boolean, Int32, Int32, Int32, Int32)

    Override methods

    Declaration
    protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
    Parameters
    Type Name Description
    System.Boolean changed

    whether layout is changed or not

    System.Int32 left

    to get the size of left

    System.Int32 top

    to get the size of top

    System.Int32 right

    to get the size of right

    System.Int32 bottom

    to get bottom

    OnSizeChanged(Int32, Int32, Int32, Int32)

    Override Methods

    Declaration
    protected override void OnSizeChanged(int w, int h, int oldw, int oldh)
    Parameters
    Type Name Description
    System.Int32 w

    To get the Width.

    System.Int32 h

    To get the Height.

    System.Int32 oldw

    To get the OldWidth.

    System.Int32 oldh

    To get the OldHeight.

    RefreshGauge()

    Method used to refresh the gauge

    Declaration
    public void RefreshGauge()

    SetOrientation(SfLinearGauge.Orientation)

    To set orientation for linear gauge.

    Declaration
    public void SetOrientation(SfLinearGauge.Orientation orientation)
    Parameters
    Type Name Description
    SfLinearGauge.Orientation orientation

    to get orientation

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved