Xamarin.Android

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfNumericTextBox - Xamarin.Android API Reference | Syncfusion SfNumericTextBox class. ">

    Show / Hide Table of Contents

    Class SfNumericTextBox

    Initializes a new instance of the SfNumericTextBox class.

    Inheritance
    System.Object
    SfNumericTextBox
    SfNumericTextBoxExt
    Namespace: Com.Syncfusion.Numerictextbox
    Assembly: Syncfusion.SfNumericTextBox.Android.dll
    Syntax
    public class SfNumericTextBox : EditText

    Constructors

    SfNumericTextBox(Context)

    Initializes a new instance of the SfNumericTextBox class.

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

    The content

    SfNumericTextBox(Context, IAttributeSet)

    Initializes a new instance of the SfNumericTextBox class.

    Declaration
    public SfNumericTextBox(Context context, IAttributeSet attributes)
    Parameters
    Type Name Description
    Android.Content.Context context

    The content variable

    Android.Util.IAttributeSet attributes

    The new variable

    SfNumericTextBox(Context, IAttributeSet, Int32)

    Initializes a new instance of the SfNumericTextBox class.

    Declaration
    public SfNumericTextBox(Context context, IAttributeSet attributes, int defaultStyle)
    Parameters
    Type Name Description
    Android.Content.Context context

    The value content

    Android.Util.IAttributeSet attributes

    The argument one

    System.Int32 defaultStyle

    The argument two

    SfNumericTextBox(Context, IAttributeSet, Int32, Int32)

    Initializes a new instance of the SfNumericTextBox class.

    Declaration
    public SfNumericTextBox(Context context, IAttributeSet attributes, int defaultStyle, int defaultStyleResource)
    Parameters
    Type Name Description
    Android.Content.Context context

    The value content

    Android.Util.IAttributeSet attributes

    The argument one

    System.Int32 defaultStyle

    The argument two

    System.Int32 defaultStyleResource

    The argument three

    SfNumericTextBox(IntPtr, JniHandleOwnership)

    Initializes a new instance of the SfNumericTextBox class.

    Declaration
    public SfNumericTextBox(IntPtr a, JniHandleOwnership b)
    Parameters
    Type Name Description
    System.IntPtr a

    The a

    Android.Runtime.JniHandleOwnership b

    The b

    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 Description
    System.Boolean

    BorderColor

    Gets or sets the Border color of the input field.

    Declaration
    public Color BorderColor { get; set; }
    Property Value
    Type Description
    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 Description
    Java.Util.Locale

    EnableGroupSeparator

    Gets or sets a value indicating whether to show the group separator or not

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

    true if enable group separator; otherwise, false

    FontSize

    Gets or sets the value of text size.

    Declaration
    public double FontSize { get; set; }
    Property Value
    Type Description
    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 Description
    System.String

    GroupSeparatorMode

    Gets or sets the value of GroupSeparatorMode. It is used to change the group separator active mode. By default it is LostFocus.

    Declaration
    public GroupSeparatorMode GroupSeparatorMode { get; set; }
    Property Value
    Type Description
    GroupSeparatorMode

    Maximum

    Gets or sets the maximum range of the numeric text box.

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

    MaximumNumberDecimalDigits

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

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

    Minimum

    Gets or sets the minimum range of the numeric text box.

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

    ParsingMode

    Gets or sets the value that determines the dataType of Value property.

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

    PercentDisplayMode

    Gets or sets the value that determines the percentage value in the input field.

    Declaration
    public PercentDisplayMode PercentDisplayMode { get; set; }
    Property Value
    Type Description
    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 Description
    System.Boolean

    Value

    Gets or sets the value of the input field.

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

    ValueChangeMode

    Gets or sets the value that determines when the value get change in the input field.

    Declaration
    public ValueChangeMode ValueChangeMode { get; set; }
    Property Value
    Type Description
    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 Description
    System.String

    WatermarkColor

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

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

    Methods

    Dispose(Boolean)

    Method used to unhook the events and detach the objects.

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

    Boolean represents disposing action.

    OnAttachedToWindow()

    Declaration
    protected override void OnAttachedToWindow()

    OnEditorAction(ImeAction)

    This is void method.

    Declaration
    public override void OnEditorAction(ImeAction actionCode)
    Parameters
    Type Name Description
    Android.Views.InputMethods.ImeAction actionCode

    action code

    OnFocusChanged(Boolean, FocusSearchDirection, Rect)

    This focus changed override method. Method to dispose the resources used.

    Declaration
    protected override void OnFocusChanged(bool gainFocus, FocusSearchDirection direction, Rect previouslyFocusedRect)
    Parameters
    Type Name Description
    System.Boolean gainFocus

    The focus of the text box

    Android.Views.FocusSearchDirection direction

    The focus direction of the text box

    Android.Graphics.Rect previouslyFocusedRect

    The previous direction of the text box

    OnTextChanged(ICharSequence, Int32, Int32, Int32)

    This is a void method.

    Declaration
    protected override void OnTextChanged(ICharSequence text, int start, int lengthBefore, int lengthAfter)
    Parameters
    Type Name Description
    Java.Lang.ICharSequence text

    The full text in the edit text

    System.Int32 start

    The cursor position of the edit text

    System.Int32 lengthBefore

    The before length of the edit text

    System.Int32 lengthAfter

    The after length of the edit text

    OnTextContextMenuItem(Int32)

    Called when a context menu option for the text view is selected.

    Declaration
    public override bool OnTextContextMenuItem(int id)
    Parameters
    Type Name Description
    System.Int32 id

    To be added.

    Returns
    Type Description
    System.Boolean

    indicates whether added or not.

    SetRawInputType(InputTypes)

    Sets the type of the raw input.

    Declaration
    public override void SetRawInputType(InputTypes type)
    Parameters
    Type Name Description
    Android.Text.InputTypes type

    the input type

    Events

    FocusChanged

    This is focus changed event handler.

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

    ValueChanged

    This is value changed event.

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