NumericUpDown Class
Represents an up-down control (also known as a spin box) that displays numeric values.
Namespace: elsystem.windows.forms
Properties
Additional
properties, methods, and events are described in the classes listed
under Inheritance Hierarchy (see below).
| Name |
Type |
Description | |
|
|
BorderStyle | enum | Gets or sets the style of border for the control. See BorderStyle for a list of values. |
|
|
DecimalPlaces | double | Gets or sets the number of decimal places to display in the up-down control. |
|
|
Increment | double | Gets or sets how much to increment or decrement Value when the up or down buttons are clicked. |
|
|
Maximum | double | Gets or sets the maximum value for the up-down control. |
|
|
Minimum | double |
Gets or sets the minimum allowed value for the up-down control. |
|
|
TextAlign | object |
Gets or sets the alignment of the text in for the up-down control. |
|
|
ThousandsSeparator | bool | True to display a thousands separator as part of the number. |
|
|
|
double | Gets or sets the value assigned to for the up-down control. |
Methods
| Name | Description | |
|
|
Create() | Initializes a new instance of a numeric up-down control. |
|
|
Create(width,height) | Initializes a new instance of a numeric up-down control. Parameters include the Width and Height of the control. |
|
|
Create(value,minvalue,maxvalue) | Initializes a new instance of a numeric up-down control. Parameters include the initial Value, the Minimum value, and the Maximum value of the control. |
|
|
DownButton() | Decrements the value of the up-down control. |
|
|
UpButton() | Increments the value of the up-down control. |
Events
| Name | Description | |
|
|
ValueChanged | Occurs when the Value property has been changed in some way. See EventArgs for the properties returned by the handler's args parameter. |
Inheritance Hierarchy
elsystem.windows.forms.ELWFComponent
elsystem.windows.forms.Control
elsystem.windows.forms.NumericUpDown