NumericUpDown
The NumericUpDown
is an editable numeric input field.
The control has a up and down button spinner attached, used to increment and decrement the value in the input field. The value can also be incremented or decremented using the arrow keys or the mouse wheel when the control is selected.
Reference
Source code
Examples
Basic NumericUpDown
The value stored in the NumericUpDown
is a double.
produces the following output on Linux\
NumericUpDown with a changed increment and bounds
A custom increment/decrement value can be set for the button spinner. The default increment value is set to 1.
NumericUpDown without a button spinner
Common Properties
Property | Description |
---|---|
| The double stored in the |
| The increment used by the button spinner, keyboard and mouse wheel |
| The minimum allowed |
| The maximum allowed |
| Location of the button spinner - Left or Right |
| If false incrementing and decrementing using the button spinner, keyboard and mouse wheel is disabled |
| Determines whether the button spinner should be shown |
最后更新于