System.Windows.Forms.NumericUpDown Members

The members of System.Windows.Forms.NumericUpDown are listed below.

See Also: Inherited members from System.Windows.Forms.UpDownBase

Public Constructors

Initializes a new instance of the System.Windows.Forms.NumericUpDown class.

Public Properties

[read-only]
AccelerationsNumericUpDownAccelerationCollection.

Gets a collection of sorted acceleration objects for the System.Windows.Forms.NumericUpDown control.

DecimalPlacesint.

Gets or sets the number of decimal places to display in the spin box (also known as an up-down control).

Hexadecimalbool.

Gets or sets a value indicating whether the spin box (also known as an up-down control) should display the value it contains in hexadecimal format.

Incrementdecimal.

Gets or sets the value to increment or decrement the spin box (also known as an up-down control) when the up or down buttons are clicked.

Maximumdecimal.

Gets or sets the maximum value for the spin box (also known as an up-down control).

Minimumdecimal.

Gets or sets the minimum allowed value for the spin box (also known as an up-down control).

PaddingPadding.

Gets or sets the space between the edges of a System.Windows.Forms.NumericUpDown control and its contents.

override
Textstring.

Gets or sets the text to be displayed in the System.Windows.Forms.NumericUpDown control.

ThousandsSeparatorbool.

Gets or sets a value indicating whether a thousands separator is displayed in the spin box (also known as an up-down control) when appropriate.

Valuedecimal.

Gets or sets the value assigned to the spin box (also known as an up-down control).

Public Methods

BeginInit()

Begins the initialization of a System.Windows.Forms.NumericUpDown control that is used on a form or used by another component. The initialization occurs at run time.

override
DownButton()

Decrements the value of the spin box (also known as an up-down control).

EndInit()

Ends the initialization of a System.Windows.Forms.NumericUpDown control that is used on a form or used by another component. The initialization occurs at run time.

override
ToString() : string

Returns a string that represents the System.Windows.Forms.NumericUpDown control.

override
UpButton()

Increments the value of the spin box (also known as an up-down control).

Protected Methods

override
CreateAccessibilityInstance() : AccessibleObject
Documentation for this section has not yet been entered.
override
OnKeyDown(KeyEventArgs)

Raises the Control.KeyDown event.

override
OnKeyUp(KeyEventArgs)

Raises the Control.KeyUp event.

override
OnLostFocus(EventArgs)

Raises the Control.LostFocus event.

override
OnTextBoxKeyPress(object, KeyPressEventArgs)

Raises the Control.KeyPress event.

OnValueChanged(EventArgs)

Raises the NumericUpDown.ValueChanged event.

ParseEditText()

Converts the text displayed in the spin box (also known as an up-down control) to a numeric value and evaluates it.

override
UpdateEditText()

Displays the current value of the spin box (also known as an up-down control) in the appropriate format.

override
ValidateEditText()

Validates and updates the text displayed in the spin box (also known as an up-down control).

Public Events

PaddingChanged

Occurs when the value of the NumericUpDown.Padding property changes.

TextChanged

Occurs when the value of the NumericUpDown.Text property changes.

ValueChanged

Occurs when the NumericUpDown.Value property has been changed in some way.