menu

Xamarin.Android

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

    Show / Hide Table of Contents

    Class SfRangeSlider

    Inheritance
    System.Object
    SfRangeSlider
    Namespace: Com.Syncfusion.Sfrangeslider
    Assembly: Syncfusion.SfRangeSlider.Android.dll
    Syntax
    public class SfRangeSlider : FrameLayout

    Constructors

    SfRangeSlider(Context)

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

    SfRangeSlider(Context, IAttributeSet)

    Initializes a new instance of the SfRangeSlider class.

    Declaration
    public SfRangeSlider(Context context, IAttributeSet attribute)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context value.

    Android.Util.IAttributeSet attribute

    Attribute value.

    SfRangeSlider(Context, IAttributeSet, Int32)

    Initializes a new instance of the SfRangeSlider class.

    Declaration
    public SfRangeSlider(Context context, IAttributeSet attribute, int style)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context value.

    Android.Util.IAttributeSet attribute

    Attribute value.

    System.Int32 style

    Style value.

    SfRangeSlider(Context, IAttributeSet, Int32, Int32)

    Initializes a new instance of the SfRangeSlider class.

    Declaration
    public SfRangeSlider(Context context, IAttributeSet attribute, int style, int resource)
    Parameters
    Type Name Description
    Android.Content.Context context

    The Context.

    Android.Util.IAttributeSet attribute

    The Attribute.

    System.Int32 style

    The Style.

    System.Int32 resource

    The Resource.

    Properties

    AllowDragRange

    Indicates whether allow to drag the ranges or not.

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

    Culture

    Gets or sets the Culture of the value label.

    Declaration
    public CultureInfo Culture { get; set; }
    Property Value
    Type
    System.Globalization.CultureInfo

    CustomLabels

    Gets or sets the value show / hide the custom label representation.

    Declaration
    public List<Items> CustomLabels { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<Items>

    DirectionReversed

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

    EnableThumbOverlay

    Gets or sets the value that indicates whether the thumb animation is enabled or not.

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

    KnobColor

    Gets or sets the fill color of the knob.

    Declaration
    public Color KnobColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    Labelcolor

    Gets or sets the text color of the label

    Declaration
    public Color Labelcolor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    LabelFormat

    Gets or sets the label format of the value label.

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

    LabelPlacement

    Gets or sets the value that determines the placement of label.

    Declaration
    public LabelPlacement LabelPlacement { get; set; }
    Property Value
    Type
    LabelPlacement

    Maximum

    Gets or sets the value indicating maximum value of the range.

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

    Minimum

    Gets or sets the value indicating minimum value of the range.

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

    MinimumRange

    Gets or sets the value between the two Thumbs in Rangelsider.

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

    Orientation

    Gets or sets the value that determines orientation of the control either vertical or horizontal.

    Declaration
    public Orientation Orientation { get; set; }
    Property Value
    Type
    Orientation

    RangeEnd

    Gets or sets the value indicating position of the right / bottom thumb.

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

    RangeStart

    Gets or sets the value indicating position of the left / top thumb.

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

    ShowCustomLabel

    Gets or sets the value show / hide the custom label representation.

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

    ShowMultipleRange

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

    ShowRange

    Gets or sets the value enable range selection by representing two thumbs.

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

    ShowValueLabel

    Gets or sets the value show / hide value representation.

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

    SnapsTo

    Gets or sets the value that restricts range snaps movement.

    Declaration
    public SnapsTo SnapsTo { get; set; }
    Property Value
    Type
    SnapsTo

    StepFrequency

    Gets or sets the value that determines intervals of the thumb step movement .

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

    TextSize

    Gets or sets the size of the text.

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

    ThumbBorderColor

    Gets or sets the color of the thumb border.

    Declaration
    public Color ThumbBorderColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    The color of the thumb border. The default value is transparent.

    ThumbBorderThickness

    Gets or sets the thickness of the thumb border..

    Declaration
    public float ThumbBorderThickness { get; set; }
    Property Value
    Type Description
    System.Single

    The thickness of the border. The default value is zero.

    ThumbCollections

    Declaration
    public List<Thumb> ThumbCollections { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<Thumb>

    ThumbInterval

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

    ThumbSize

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

    TickColor

    Gets or sets the color of the tick.

    Declaration
    public Color TickColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    TickFrequency

    Gets or sets the value that determines intervals of the thumb step movement.

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

    TickLength

    Declaration
    public float TickLength { get; set; }
    Property Value
    Type
    System.Single

    TickPlacement

    Gets or sets the value that determines intervals of the tick representation.

    Declaration
    public TickPlacement TickPlacement { get; set; }
    Property Value
    Type
    TickPlacement

    ToolTipBackGroundColor

    Gets or sets the background color of the tool tip.

    Declaration
    public Color ToolTipBackGroundColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    ToolTipPlacement

    Gets or sets the value that determines the placement of tool tip.

    Declaration
    public ToolTipPlacement ToolTipPlacement { get; set; }
    Property Value
    Type
    ToolTipPlacement

    ToolTipPrecision

    Gets or sets the value that determines the number of digits to be displayed in tool tip.

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

    ToolTipTextColor

    Gets or sets the text color of the tool tip.

    Declaration
    public Color ToolTipTextColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    TrackColor

    Gets or sets the fill color for the track.

    Declaration
    public Color TrackColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    TrackCornerRadius

    Gets or sets the corner radius of the track..

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

    The corner radius of the track. The default value is zero.

    TrackSelectionColor

    Gets or sets the fill color for the ranged track

    Declaration
    public Color TrackSelectionColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    TrackSelectionStroke

    Declaration
    public float TrackSelectionStroke { get; set; }
    Property Value
    Type
    System.Single

    TrackStroke

    Declaration
    public float TrackStroke { get; set; }
    Property Value
    Type
    System.Single

    Typeface

    Gets or sets the typeface.

    Declaration
    public Typeface Typeface { get; set; }
    Property Value
    Type
    Android.Graphics.Typeface

    Value

    Gets or sets the value that determines the current position of thumb in single thumb representation.

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

    ValueChangeMode

    Gets or sets the value of the value changing mode.

    Declaration
    public ValueChangeMode ValueChangeMode { get; set; }
    Property Value
    Type
    ValueChangeMode

    ValuePlacement

    Gets or sets the value that determines the placement of value representation

    Declaration
    public ValuePlacement ValuePlacement { get; set; }
    Property Value
    Type
    ValuePlacement

    Methods

    Dispose(Boolean)

    Dispose the specified disposing.

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

    If set to true disposing.

    OnSizeChanged(Int32, Int32, Int32, Int32)

    method for size changed

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

    width

    System.Int32 h

    height

    System.Int32 oldw

    oldwidth

    System.Int32 oldh

    oldheight

    OnTouchEvent(MotionEvent)

    Declaration
    public override bool OnTouchEvent(MotionEvent ev)
    Parameters
    Type Name Description
    Android.Views.MotionEvent ev
    Returns
    Type
    System.Boolean

    Events

    DragCompleted

    Occurs when drag ended.

    Declaration
    public event EventHandler<DragThumbEventArgs> DragCompleted
    Event Type
    Type
    System.EventHandler<DragThumbEventArgs>

    DragStarted

    Occurs when drag started.

    Declaration
    public event EventHandler<DragThumbEventArgs> DragStarted
    Event Type
    Type
    System.EventHandler<DragThumbEventArgs>

    MultiRangeChanged

    Declaration
    public event EventHandler<MultiRangeChangedEventArgs> MultiRangeChanged
    Event Type
    Type
    System.EventHandler<MultiRangeChangedEventArgs>

    RangeChanged

    Declaration
    public event EventHandler<RangeChangedEventArgs> RangeChanged
    Event Type
    Type
    System.EventHandler<RangeChangedEventArgs>

    RangeEndChanged

    Declaration
    public event EventHandler<RangeEndChangedEventArgs> RangeEndChanged
    Event Type
    Type
    System.EventHandler<RangeEndChangedEventArgs>

    RangeStartChanged

    Declaration
    public event EventHandler<RangeStartChangedEventArgs> RangeStartChanged
    Event Type
    Type
    System.EventHandler<RangeStartChangedEventArgs>

    ThumbTouchDown

    Occurs when ThumbTouchDown.

    Declaration
    public event EventHandler<DragThumbEventArgs> ThumbTouchDown
    Event Type
    Type
    System.EventHandler<DragThumbEventArgs>

    ThumbTouchUp

    Occurs when TouchUp.

    Declaration
    public event EventHandler<DragThumbEventArgs> ThumbTouchUp
    Event Type
    Type
    System.EventHandler<DragThumbEventArgs>

    ValueChanged

    Declaration
    public event EventHandler<ValueChangedEventArgs> ValueChanged
    Event Type
    Type
    System.EventHandler<ValueChangedEventArgs>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved