menu

Xamarin.Android

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

    Show / Hide Table of Contents

    Class SfNumericUpDown

    Represents the NumericUpDown control which is used to restricts input to numeric values with up and down repeat buttons.

    Inheritance
    System.Object
    SfNumericUpDown
    Namespace: Com.Syncfusion.Numericupdown
    Assembly: Syncfusion.SfNumericUpDown.Android.dll
    Syntax
    public class SfNumericUpDown : FrameLayout

    Constructors

    SfNumericUpDown(Context)

    Initializes a new instance of the SfNumericUpDown class.

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

    Context type

    SfNumericUpDown(Context, IAttributeSet)

    Initializes a new instance of the SfNumericUpDown class.

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

    Context type

    Android.Util.IAttributeSet attribute

    Attribute set

    SfNumericUpDown(Context, IAttributeSet, Int32)

    Initializes a new instance of the SfNumericUpDown class.

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

    context type

    Android.Util.IAttributeSet attribute

    Attribute set

    System.Int32 style

    integer type

    SfNumericUpDown(Context, IAttributeSet, Int32, Int32)

    Initializes a new instance of the SfNumericUpDown class.

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

    The value content

    Android.Util.IAttributeSet attribute

    The argument one

    System.Int32 style

    The argument two

    System.Int32 defaultStyleResource

    The argument three

    Properties

    AllowNull

    Gets or sets a value indicating whether null value can be set or not in input field.

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

    AutoReverse

    Gets or sets a value indicating whether the cyclic behavior when value reached minimum or maximum value.

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

    BorderColor

    Gets or sets the color of the border of the input field.

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

    CultureInfo

    Gets or sets the value for a culture to display the value based on it.

    Declaration
    public Locale CultureInfo { get; set; }
    Property Value
    Type
    Java.Util.Locale

    CustomView

    Gets or sets the value that places the CustomView instead of numericTextView

    Declaration
    public View CustomView { get; set; }
    Property Value
    Type
    Android.Views.View

    DecrementButtonSettings

    Gets or sets the value of Decrement button settings property.

    Declaration
    public UpDownButtonSettings DecrementButtonSettings { get; set; }
    Property Value
    Type
    UpDownButtonSettings

    EnableGroupSeparator

    Gets or sets a value indicating whether the sepeator for text has shown or not

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

    FontAttribute

    Gets or sets the style of the font in input field

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

    FontSize

    Gets or sets the value of text size.

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

    FormatString

    Gets or sets the value that determines the display format of the text when the control is unfocused.

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

    IncrementButtonSettings

    Gets or sets the value of Increment button settings

    Declaration
    public UpDownButtonSettings IncrementButtonSettings { get; set; }
    Property Value
    Type
    UpDownButtonSettings

    IsEditable

    Gets or sets a value indicating whether the user to perform edition operation in input field.

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

    IsEnabled

    Gets or sets a value indicating whether the control has enable or not

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

    Maximum

    Gets or sets the value that determines the maximum value of the increment

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

    MaximumDecimalDigits

    Gets or sets the value of determines the maximum number of decimal digits to be allowed

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

    Minimum

    Gets or sets the value that determines the minimum value of the decrement

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

    ParsingMode

    Gets or sets the value that display the parser mode

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

    PercentDisplayMode

    Gets or sets the value that display the value either as actual value or computed with percentage.

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

    SelectAllOnFocus

    Gets or sets a value indicating whether determines whether to select all or not.

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

    SpinButtonAlignment

    Gets or sets the value that places the increment or decrement button in left, right or both side

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

    SpinValidation

    Gets or sets the value to perform spinvalidation

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

    StepValue

    Gets or sets the value that determine the next increment and decrement value.

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

    TextAlignment

    Gets or sets the value that determines the alignment of the text of the input field.

    Declaration
    public TextAlignment TextAlignment { get; set; }
    Property Value
    Type
    Android.Views.TextAlignment

    TextColor

    Gets or sets the color of text of the input field.

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

    TextGravity

    Gets or sets the alignment of the text in input field

    Declaration
    public GravityFlags TextGravity { get; set; }
    Property Value
    Type
    Android.Views.GravityFlags

    Typeface

    Gets or sets the typeface

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

    UpDownButtonColor

    Gets or sets the color of upDownButton text color

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

    Value

    Gets or sets the value of the input field.

    Declaration
    public object Value { get; set; }
    Property Value
    Type
    System.Object

    ValueChangeMode

    Gets or sets the value that determines value change action either while every character changed or lost focus

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

    Watermark

    Gets or sets the value to display hint text when the input field is empty and unfocused.

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

    WatermarkColor

    Gets or sets the color of the hint of the input field.

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

    Methods

    Dispose(Boolean)

    Disposing method

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

    disposing

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

    Onlayout method

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

    changed value

    System.Int32 left

    left value

    System.Int32 top

    top value

    System.Int32 right

    Right value

    System.Int32 bottom

    Bottom value

    OnSizeChanged(Int32, Int32, Int32, Int32)

    On size changed method

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

    new width

    System.Int32 h

    new height

    System.Int32 oldw

    Old width

    System.Int32 oldh

    Old height

    Events

    FocusChanged

    Focus changed event

    Declaration
    public event EventHandler<FocusChangedEventArgs> FocusChanged
    Event Type
    Type
    System.EventHandler<FocusChangedEventArgs>

    ValueChanged

    Value changed event field.

    Declaration
    public event EventHandler<ValueChangedEventArgs> ValueChanged
    Event Type
    Type
    System.EventHandler<ValueChangedEventArgs>

    ValueChanging

    Occurs whenever the numeric up down’s value is changing through a spin button click or editing the value in the editor.

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