menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class IntegerTextBox - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class IntegerTextBox

    Represents the class to apply the theme for IntegerTextBox control.

    Inheritance
    System.Object
    TextBoxExt
    NumberTextBoxBase
    NumericTextBox
    IntegerTextBox
    GridIntegerTextBox
    Implements
    IThemeProvider
    System.ComponentModel.ISupportInitialize
    System.Runtime.Serialization.ISerializable
    IVisualStyle
    Inherited Members
    NumberTextBoxBase.AllowNull
    NumberTextBoxBase.ApplyFormattingAndSetText(String)
    NumberTextBoxBase.ApplyRightToLeft()
    NumberTextBoxBase.BackColor
    NumberTextBoxBase.BackGroundColor
    NumberTextBoxBase.BindableValue
    NumberTextBoxBase.BindableValueChanged
    NumberTextBoxBase.CanInsert(String, String, Int32)
    NumberTextBoxBase.CanUndo
    NumberTextBoxBase.CheckDecimalPartLength(String)
    NumberTextBoxBase.CheckForMinMax(String)
    NumberTextBoxBase.ClipMode
    NumberTextBoxBase.ClipText
    NumberTextBoxBase.ClipTextChanged
    NumberTextBoxBase.CompleteInsertString(NumberModifyState)
    NumberTextBoxBase.CompleteSubtractKey(NumberModifyState)
    NumberTextBoxBase.ConcatModifiedText(String, String, String)
    NumberTextBoxBase.ControlValidated
    NumberTextBoxBase.Copy()
    NumberTextBoxBase.Culture
    NumberTextBoxBase.CurrentCultureRefresh
    NumberTextBoxBase.Cut()
    NumberTextBoxBase.DefaultValue
    NumberTextBoxBase.Delete()
    NumberTextBoxBase.DeleteSelectedText()
    NumberTextBoxBase.DeleteSelectedText(String, Int32, Int32)
    NumberTextBoxBase.EndInit()
    NumberTextBoxBase.EnforceMinMaxDuringValidating
    NumberTextBoxBase.ForeColor
    NumberTextBoxBase.FormattedText
    NumberTextBoxBase.FormattedTextChanged
    NumberTextBoxBase.GetClipText()
    NumberTextBoxBase.GetClipText(Boolean)
    NumberTextBoxBase.GetCopyOfCurrentNumberFormatInfo()
    NumberTextBoxBase.GetDecimalDigits()
    NumberTextBoxBase.GetDecimalSeparator()
    NumberTextBoxBase.GetDecimalSeparator(NumberFormatInfo)
    NumberTextBoxBase.GetDecimalSeparatorPosition(String)
    NumberTextBoxBase.GetDecimalSeparatorPosition(String, NumberFormatInfo)
    NumberTextBoxBase.GetFirstDataPos()
    NumberTextBoxBase.GetGroupSeparator()
    NumberTextBoxBase.GetGroupSeparator(NumberFormatInfo)
    NumberTextBoxBase.GetNegativeInputPending()
    NumberTextBoxBase.GetNextDataPos(Int32, Boolean, Boolean, Boolean)
    NumberTextBoxBase.GetNumberPartLength(String)
    NumberTextBoxBase.GetPreserveData()
    NumberTextBoxBase.GetPrevDataPos(Int32)
    NumberTextBoxBase.GetStartPositionJustNumbers(String, Int32)
    NumberTextBoxBase.GetTextBoxText()
    NumberTextBoxBase.GetTextBoxTextLength()
    NumberTextBoxBase.GetZeroNegative()
    NumberTextBoxBase.HandleBackspaceKeyChar()
    NumberTextBoxBase.ignoreTextChange
    NumberTextBoxBase.initNumberFormatInfoObject
    NumberTextBoxBase.InsertString(String, Int32, Int32, String)
    NumberTextBoxBase.IsDataPosition(String, Int32)
    NumberTextBoxBase.IsInDecimalPosition(String, Int32)
    NumberTextBoxBase.IsNegative
    NumberTextBoxBase.IsNull
    NumberTextBoxBase.IsValidCharacter(Char)
    NumberTextBoxBase.KeyValidate
    NumberTextBoxBase.m_bDecimalMode
    NumberTextBoxBase.MaxLength
    NumberTextBoxBase.MinMaxValidation
    NumberTextBoxBase.NegativeColor
    NumberTextBoxBase.NegativeInputPendingOnSelectAll
    NumberTextBoxBase.NegativeSign
    NumberTextBoxBase.NullFormat
    NumberTextBoxBase.NullState
    NumberTextBoxBase.NullString
    NumberTextBoxBase.NumberFormatInfoObject
    NumberTextBoxBase.OnBackColorChanged(EventArgs)
    NumberTextBoxBase.OnBindableValueChanged(EventArgs)
    NumberTextBoxBase.OnClipTextChanged(EventArgs)
    NumberTextBoxBase.OnControlValidated(String, String)
    NumberTextBoxBase.OnFormattedTextChanged(EventArgs)
    NumberTextBoxBase.OnKeyValidate(KeyValidateEventArgs)
    NumberTextBoxBase.OnMouseDown(MouseEventArgs)
    NumberTextBoxBase.OnReadOnlyChanged(EventArgs)
    NumberTextBoxBase.OnSetNull(SetNullEventArgs)
    NumberTextBoxBase.OnValidationError(ValidationErrorArgs)
    NumberTextBoxBase.OnValidationFailed
    NumberTextBoxBase.OverWriteText
    NumberTextBoxBase.ParseForNegativeFormat(String)
    NumberTextBoxBase.ParseForNegativeFormat(String, NumberFormatInfo)
    NumberTextBoxBase.Paste()
    NumberTextBoxBase.PositionCursorAfterEdit(Int32, Boolean, Boolean, Boolean)
    NumberTextBoxBase.PositiveColor
    NumberTextBoxBase.ProcessKeyEventArgs(Message)
    NumberTextBoxBase.ProcessKeyMessage(Message)
    NumberTextBoxBase.RaiseKeyValidate(Char, String, String)
    NumberTextBoxBase.RaiseSetNull(Object)
    NumberTextBoxBase.RaiseValidationError(String, Int32)
    NumberTextBoxBase.RaiseValidationError(String, Int32, String)
    NumberTextBoxBase.ReadOnlyBackColor
    NumberTextBoxBase.RefreshCulture()
    NumberTextBoxBase.RemoveFormatting(String)
    NumberTextBoxBase.RemoveFormatting(String, Boolean)
    NumberTextBoxBase.RemoveFormatting(String, NumberFormatInfo)
    NumberTextBoxBase.RemoveFormatting(String, NumberFormatInfo, Boolean)
    NumberTextBoxBase.ResetControlBackColor()
    NumberTextBoxBase.ResetForeColor()
    NumberTextBoxBase.ResetNegativeColor()
    NumberTextBoxBase.ResetPositiveColor()
    NumberTextBoxBase.ResetReadOnlyBackColor()
    NumberTextBoxBase.ResetRightToLeft()
    NumberTextBoxBase.ResetZeroColor()
    NumberTextBoxBase.ReturnBaseText
    NumberTextBoxBase.RightToLeft
    NumberTextBoxBase.rollBackOperation
    NumberTextBoxBase.SelectAll()
    NumberTextBoxBase.SelectAllOnFocus
    NumberTextBoxBase.SelectedText
    NumberTextBoxBase.SetControlColor()
    NumberTextBoxBase.SetDefaultValue(Object)
    NumberTextBoxBase.SetEmptySelection(Int32)
    NumberTextBoxBase.SetModifiedText(String, String)
    NumberTextBoxBase.SetNegativeInputPending(Boolean)
    NumberTextBoxBase.SetNull
    NumberTextBoxBase.SetPreserveData(Boolean)
    NumberTextBoxBase.SetTextBoxText(String)
    NumberTextBoxBase.SetZeroNegative(Boolean)
    NumberTextBoxBase.ShouldSerializeNegativeColor()
    NumberTextBoxBase.ShouldSerializeNegativeSign()
    NumberTextBoxBase.ShouldSerializePositiveColor()
    NumberTextBoxBase.ShouldSerializeZeroColor()
    NumberTextBoxBase.SpecialCultureValue
    NumberTextBoxBase.supressKeyPress
    NumberTextBoxBase.Undo()
    NumberTextBoxBase.UseUserOverride
    NumberTextBoxBase.Validate(Boolean)
    NumberTextBoxBase.ValidationError
    NumberTextBoxBase.WndProc(Message)
    NumberTextBoxBase.ZeroColor
    NumericTextBox.DeleteSelectionOnNegative
    NumericTextBox.GetNumberEndPosition()
    NumericTextBox.GetNumberStartPosition()
    NumericTextBox.HandleCharacterKey(Char)
    NumericTextBox.HandleSubtractKey()
    NumericTextBox.NumberGroupSeparator
    NumericTextBox.NumberGroupSizes
    NumericTextBox.NumberNegativePattern
    NumericTextBox.SetNumberFormatInfoInitValues()
    NumericTextBox.ShouldSerializeNumberGroupSeparator()
    NumericTextBox.ShouldSerializeNumberGroupSizes()
    TextBoxExt.ApplyScaleToControl(Single)
    TextBoxExt.BeforeTouchSize
    TextBoxExt.BeginInit()
    TextBoxExt.Border3DStyle
    TextBoxExt.Border3DStyleChanged
    TextBoxExt.BorderColor
    TextBoxExt.BorderColorChanged
    TextBoxExt.BorderSides
    TextBoxExt.BorderSidesChanged
    TextBoxExt.CanApplyTheme
    TextBoxExt.CanOverrideStyle
    TextBoxExt.CharacterCasing
    TextBoxExt.CharacterCasingChanged
    TextBoxExt.ControlName
    TextBoxExt.CornerRadius
    TextBoxExt.CreateParams
    TextBoxExt.DefWndProc(Message)
    TextBoxExt.DrawActiveWhenDisabled
    TextBoxExt.EnableTouchMode
    TextBoxExt.FarImage
    TextBoxExt.FocusBorderColor
    TextBoxExt.Font
    TextBoxExt.GetActiveThemeName()
    TextBoxExt.Initializing
    TextBoxExt.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
    TextBoxExt.IsVisualStyleEnabled
    TextBoxExt.IThemeProvider.BaseThemeName
    TextBoxExt.IVisualStyle.VisualTheme
    TextBoxExt.MaximumSize
    TextBoxExt.MaximumSizeChanged
    TextBoxExt.Metrocolor
    TextBoxExt.MinimumSize
    TextBoxExt.MinimumSizeChanged
    TextBoxExt.NCOverflowIndicatorPaint(Graphics, Rectangle, Rectangle)
    TextBoxExt.NearImage
    TextBoxExt.Office2007ColorScheme
    TextBoxExt.Office2007ColorTable
    TextBoxExt.Office2010ColorScheme
    TextBoxExt.Office2010ColorTable
    TextBoxExt.OnBorder3DStyleChanged(EventArgs)
    TextBoxExt.OnBorderColorChanged(EventArgs)
    TextBoxExt.OnBorderSidesChanged(EventArgs)
    TextBoxExt.OnBorderStyleChanged(EventArgs)
    TextBoxExt.OnCanApplyThemeChanged(Boolean)
    TextBoxExt.OnCanOverrideStyleChanged(Boolean)
    TextBoxExt.OnCharacterCasingChanged(EventArgs)
    TextBoxExt.OnFontChanged(EventArgs)
    TextBoxExt.OnHandleCreated(EventArgs)
    TextBoxExt.OnHandleDestroyed(EventArgs)
    TextBoxExt.OnLostFocus(EventArgs)
    TextBoxExt.OnMaximumSizeChanged(EventArgs)
    TextBoxExt.OnMinimumSizeChanged(EventArgs)
    TextBoxExt.OnMouseEnter(EventArgs)
    TextBoxExt.OnMouseLeave(EventArgs)
    TextBoxExt.OnMultilineChanged(EventArgs)
    TextBoxExt.OnPaint(PaintEventArgs)
    TextBoxExt.OnParentChanged(EventArgs)
    TextBoxExt.OnSizeChanged(EventArgs)
    TextBoxExt.OnThemesEnabledChanged(EventArgs)
    TextBoxExt.OverflowIndicatorToolTip
    TextBoxExt.OverflowIndicatorToolTipText
    TextBoxExt.RaiseThemeChanged(Object, ThemeChangedEventArgs)
    TextBoxExt.ShowOverflowIndicator
    TextBoxExt.ShowOverflowIndicatorToolTip
    TextBoxExt.Style
    TextBoxExt.ThemeName
    TextBoxExt.ThemeNameChanged
    TextBoxExt.ThemesEnabled
    TextBoxExt.ThemesEnabledChanged
    TextBoxExt.UseBorderColorOnFocus
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class IntegerTextBox : NumericTextBox, IThemeProvider, ISupportInitialize, ISerializable, IVisualStyle
    Remarks

    The IntegerTextBox is derived from textbox and provides all the functionality of a textbox and adds additional functionality of its own.

    Collecting integer input in a consistent format requires validation code that needs to be built into the application when using the Windows Forms textbox control. The IntegerTextBox includes all this logic into its methods and properties and makes it easy for the developer and the end user to collect and enter double data.

    The IntegerTextBox is also closely tied to the globalization settings of the operating system for number related properties. Please refer to the System.Globalization.NumberFormatInfo class for a detailed explanation of globalization and number related attributes.

    The IntegerTextBox has full support for the Windows Forms designer and you can just drag-and-drop and set properties on the control just as you would with the Windows Forms textbox.

    The IntegerTextBox also raises a ValidationError event when inappropriate data is entered into the control.

    All clipboard functions such as copy, paste and cut are also supported with special accommodations for a number related issues.

    Constructors

    IntegerTextBox()

    Overloaded. Creates an object of type IntegerTextBox.

    Declaration
    public IntegerTextBox()
    Remarks

    The IntegerTextBox object will be initialized with the default values for the display and data properties. You need to set any specific values.

    Properties

    AccessibilityEnabled

    Gets or sets a value indicating whether the control should enable its Accessibility support.

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

    AllowLeadingZeros

    Indicates whether to allow insets zero in the beginning value.

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

    IntegerValue

    Gets / sets the integer value of the control. This will be formatted and displayed.

    Declaration
    public long IntegerValue { get; set; }
    Property Value
    Type
    System.Int64

    IsNullValue

    Declaration
    [Obsolete("This property will not be used in future. Use NullState property to get the null state of the text box")]
    public bool IsNullValue { get; set; }
    Property Value
    Type
    System.Boolean

    MaxValue

    Gets / sets the maximum value that can be set through the IntegerTextBox.

    Declaration
    public long MaxValue { get; set; }
    Property Value
    Type
    System.Int64

    MinValue

    Gets / sets the minimum value that can be set through the IntegerTextBox.

    Declaration
    public long MinValue { get; set; }
    Property Value
    Type
    System.Int64

    NumberDecimalDigits

    Gets / sets the maximum number of digits for the decimal portion.

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

    This property is always set to zero for the IntegerTextBox.

    NumberDecimalSeparator

    Gets / sets the decimal separator character that will be used for the display.

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

    This value is initially set from the System.Globalization.NumberFormatInfo and can be changed based on your requirements or based on the locale.

    Text

    Overrides the Text property of System.Windows.Forms.TextBox.

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

    This property is overriden in order to normalize the data that is set to the Text property and format it as needed. The method InsertString(String, Int32, Int32, String, Boolean) is used to format the data.

    ThemeStyle

    Declaration
    public IntegerTextBoxVisualStyle ThemeStyle { get; set; }
    Property Value
    Type
    IntegerTextBoxVisualStyle

    UseNullString

    Declaration
    [Obsolete("This property will not be used in future.")]
    public bool UseNullString { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    ApplyFormatting(String)

    Formats the given text according to the current setting.

    Declaration
    protected override string ApplyFormatting(string rawValue)
    Parameters
    Type Name Description
    System.String rawValue
    Returns
    Type
    System.String
    Overrides
    NumberTextBoxBase.ApplyFormatting(String)

    CheckForMinMax(String, Boolean)

    Declaration
    protected override bool CheckForMinMax(string currentTextValue, bool ignoreLength)
    Parameters
    Type Name Description
    System.String currentTextValue
    System.Boolean ignoreLength
    Returns
    Type
    System.Boolean
    Overrides
    NumberTextBoxBase.CheckForMinMax(String, Boolean)

    CheckIfNegative(String)

    Declaration
    protected override bool CheckIfNegative(string rawValue)
    Parameters
    Type Name Description
    System.String rawValue
    Returns
    Type
    System.Boolean
    Overrides
    NumberTextBoxBase.CheckIfNegative(String)

    CheckIsZero()

    Declaration
    protected override bool CheckIsZero()
    Returns
    Type
    System.Boolean
    Overrides
    NumberTextBoxBase.CheckIsZero()

    CheckNullStringIsInRange(String)

    Declaration
    protected override bool CheckNullStringIsInRange(string nullString)
    Parameters
    Type Name Description
    System.String nullString
    Returns
    Type
    System.Boolean
    Overrides
    NumberTextBoxBase.CheckNullStringIsInRange(String)

    CreateAccessibilityInstance()

    Declaration
    protected override AccessibleObject CreateAccessibilityInstance()
    Returns
    Type
    System.Windows.Forms.AccessibleObject
    Overrides
    TextBoxExt.CreateAccessibilityInstance()

    CursorShouldBeMoved(Int32, Boolean)

    Declaration
    protected override int CursorShouldBeMoved(int startPosition, bool inDecimalPosition)
    Parameters
    Type Name Description
    System.Int32 startPosition
    System.Boolean inDecimalPosition
    Returns
    Type
    System.Int32
    Overrides
    NumberTextBoxBase.CursorShouldBeMoved(Int32, Boolean)

    Dispose(Boolean)

    Releases the unmanaged resources used by the IntegerTextBox and optionally releases the managed resources.

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

    true to release both managed and unmanaged resources; false to release only unmanage resources.

    Overrides
    NumberTextBoxBase.Dispose(Boolean)

    FormatChanged(String, NumberFormatInfo)

    Declaration
    protected override void FormatChanged(string currentText, NumberFormatInfo previousFormat)
    Parameters
    Type Name Description
    System.String currentText
    System.Globalization.NumberFormatInfo previousFormat
    Overrides
    NumberTextBoxBase.FormatChanged(String, NumberFormatInfo)

    GetControlName(String)

    Helps to override the ThemeName property settings

    Declaration
    public override string GetControlName(string controlName)
    Parameters
    Type Name Description
    System.String controlName

    ThemeName

    Returns
    Type
    System.String
    Overrides
    TextBoxExt.GetControlName(String)

    GetInitialZeroCount(String, Int32)

    Declaration
    protected override int GetInitialZeroCount(string currentText, int startPosition)
    Parameters
    Type Name Description
    System.String currentText
    System.Int32 startPosition
    Returns
    Type
    System.Int32
    Overrides
    NumberTextBoxBase.GetInitialZeroCount(String, Int32)

    GetNumberPartLength(Int64)

    Declaration
    protected int GetNumberPartLength(long numberValue)
    Parameters
    Type Name Description
    System.Int64 numberValue
    Returns
    Type
    System.Int32

    GetNumberValue(String, Int32)

    Declaration
    protected override string GetNumberValue(string formattedText, int startPosition)
    Parameters
    Type Name Description
    System.String formattedText
    System.Int32 startPosition
    Returns
    Type
    System.String
    Overrides
    NumberTextBoxBase.GetNumberValue(String, Int32)

    GetValue()

    Declaration
    protected override object GetValue()
    Returns
    Type
    System.Object
    Overrides
    NumberTextBoxBase.GetValue()

    HandleBackspaceKey()

    Declaration
    protected override bool HandleBackspaceKey()
    Returns
    Type
    System.Boolean
    Overrides
    NumericTextBox.HandleBackspaceKey()

    HandleDecimalKey()

    Declaration
    protected override bool HandleDecimalKey()
    Returns
    Type
    System.Boolean
    Overrides
    NumberTextBoxBase.HandleDecimalKey()

    HandleDeleteKey()

    Declaration
    protected override bool HandleDeleteKey()
    Returns
    Type
    System.Boolean
    Overrides
    NumericTextBox.HandleDeleteKey()

    InitializeNumberTextBox()

    Overrides InitializeNumberTextBox().

    Declaration
    protected override void InitializeNumberTextBox()
    Overrides
    NumberTextBoxBase.InitializeNumberTextBox()

    InsertString(String, Int32, Int32, String, Boolean)

    Declaration
    protected override bool InsertString(string currentText, int startPosition, int selectionLength, string textToBeInserted, bool pasteOperation)
    Parameters
    Type Name Description
    System.String currentText
    System.Int32 startPosition
    System.Int32 selectionLength
    System.String textToBeInserted
    System.Boolean pasteOperation
    Returns
    Type
    System.Boolean
    Overrides
    NumberTextBoxBase.InsertString(String, Int32, Int32, String, Boolean)

    IsAssignable(Object)

    Declaration
    protected override bool IsAssignable(object val)
    Parameters
    Type Name Description
    System.Object val
    Returns
    Type
    System.Boolean
    Overrides
    NumberTextBoxBase.IsAssignable(Object)

    IsValidNumberValue(String)

    Declaration
    protected override bool IsValidNumberValue(string intString)
    Parameters
    Type Name Description
    System.String intString
    Returns
    Type
    System.Boolean
    Overrides
    NumberTextBoxBase.IsValidNumberValue(String)

    OnEnabledChanged(EventArgs)

    Raises the System.Windows.Forms.Control.EnabledChanged event.

    Declaration
    protected override void OnEnabledChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    An System.EventArgs that contains the event data.

    Overrides
    TextBoxExt.OnEnabledChanged(EventArgs)

    OnEnter(EventArgs)

    Overrides the System.Windows.Forms.Control.OnEnter(System.EventArgs) method.

    Declaration
    protected override void OnEnter(EventArgs args)
    Parameters
    Type Name Description
    System.EventArgs args

    The event data.

    Overrides
    NumberTextBoxBase.OnEnter(EventArgs)
    Remarks

    Saves the current IntegerValue so that it can be compared during validation. The IntegerValueChanged and TextChanged event will only be raised if the value is different during validation.

    OnGotFocus(EventArgs)

    Helps to override the OnGotFocus events

    Declaration
    protected override void OnGotFocus(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    An System.EventArgs that contains the event data.

    Overrides
    TextBoxExt.OnGotFocus(EventArgs)

    OnIntegerValueChanged(EventArgs)

    Raises the IntegerValueChanged event.

    Declaration
    protected virtual void OnIntegerValueChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    A System.EventArgs that contains the event data.

    OnTextChanged(EventArgs)

    Overrides OnTextChanged.

    Declaration
    protected override void OnTextChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The event data.

    Overrides
    NumberTextBoxBase.OnTextChanged(EventArgs)

    OnThemeNameChanged(String)

    Helps to apply the ThemeName settings in control

    Declaration
    public override void OnThemeNameChanged(string themeName)
    Parameters
    Type Name Description
    System.String themeName

    ThemeName

    Overrides
    TextBoxExt.OnThemeNameChanged(String)

    OnValidated(EventArgs)

    Declaration
    protected override void OnValidated(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnValidating(CancelEventArgs)

    Declaration
    protected override void OnValidating(CancelEventArgs e)
    Parameters
    Type Name Description
    System.ComponentModel.CancelEventArgs e
    Overrides
    NumberTextBoxBase.OnValidating(CancelEventArgs)

    PerformMinMaxValidation()

    performs the Min/Max validation.

    Declaration
    protected virtual void PerformMinMaxValidation()

    PrepareInsertString(String, Int32, Int32, String, Boolean)

    Declaration
    protected override NumberModifyState PrepareInsertString(string currentText, int startPosition, int selectionLength, string textToBeInserted, bool pasteOperation)
    Parameters
    Type Name Description
    System.String currentText
    System.Int32 startPosition
    System.Int32 selectionLength
    System.String textToBeInserted
    System.Boolean pasteOperation
    Returns
    Type
    NumberModifyState
    Overrides
    NumberTextBoxBase.PrepareInsertString(String, Int32, Int32, String, Boolean)

    ResetText()

    Declaration
    public override void ResetText()

    SetIntegerValue(Int64)

    Declaration
    protected void SetIntegerValue(long newValue)
    Parameters
    Type Name Description
    System.Int64 newValue

    SetNullNumberValue()

    Declaration
    protected override void SetNullNumberValue()
    Overrides
    NumberTextBoxBase.SetNullNumberValue()

    SetTextProperty(String)

    Declaration
    protected override void SetTextProperty(string newText)
    Parameters
    Type Name Description
    System.String newText
    Overrides
    NumberTextBoxBase.SetTextProperty(String)

    SetValue(Object)

    Declaration
    protected override void SetValue(object val)
    Parameters
    Type Name Description
    System.Object val
    Overrides
    NumberTextBoxBase.SetValue(Object)

    ShouldSerializeNumberDecimalDigits()

    Indicates whether to serialize NumberDecimalDigits property value.

    Declaration
    public bool ShouldSerializeNumberDecimalDigits()
    Returns
    Type
    System.Boolean

    ShouldSerializeNumberDecimalSeparator()

    Indicates whether to serialize NumberDecimalSeparator property value

    Declaration
    public bool ShouldSerializeNumberDecimalSeparator()
    Returns
    Type
    System.Boolean

    ShouldSerializeText()

    Indicates whether to serialize the Text property if it is null or quals NullString

    Declaration
    protected bool ShouldSerializeText()
    Returns
    Type
    System.Boolean

    ToggleNegative(String)

    Declaration
    protected override string ToggleNegative(string currentText)
    Parameters
    Type Name Description
    System.String currentText
    Returns
    Type
    System.String
    Overrides
    NumberTextBoxBase.ToggleNegative(String)

    Events

    IntegerValueChanged

    Occurs when the DecimalValue property is changed.

    Declaration
    public event EventHandler IntegerValueChanged
    Event Type
    Type
    System.EventHandler

    Implements

    IThemeProvider
    System.ComponentModel.ISupportInitialize
    System.Runtime.Serialization.ISerializable
    IVisualStyle
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved