Skip to main content
Version: 4.1

NumericUpDown

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a spinner control that displays numeric values.

public class NumericUpDown : UpDownBase, ISupportInitialize, INotifyPropertyChanged

Constructors

Instance member NumericUpDown()

Initializes a new instance of the NumericUpDown class.

Instance member NumericUpDown(onValueChanged)

Initializes a new instance of the NumericUpDown class with specific initial settings.

NameTypeDescription
onValueChangedAction<Object, EventArgs>The delegate to invoke when the ValueChanged event is raised.

Instance member NumericUpDown(label, onValueChanged)

Initializes a new instance of the NumericUpDown class with specific initial settings.

NameTypeDescription
labelStringInitial LabelText value.
onValueChangedAction<Object, EventArgs>The delegate to invoke when the ValueChanged event is raised.

Instance member NumericUpDown(location, size, onValueChanged)

Initializes a new instance of the NumericUpDown class with specific initial settings.

NameTypeDescription
locationPointThe Point specifying the upper-left corner of the NumericUpDown control relative to the upper-left corner of its container.
sizeSizeThe Size of the NumericUpDown control.
onValueChangedAction<Object, EventArgs>The delegate to invoke when the ValueChanged event is raised.

Instance member NumericUpDown(label, location, size, onValueChanged)

Initializes a new instance of the NumericUpDown class with specific initial settings.

NameTypeDescription
labelStringInitial LabelText value.
locationPointThe Point specifying the upper-left corner of the NumericUpDown control relative to the upper-left corner of its container.
sizeSizeThe Size of the NumericUpDown control.
onValueChangedAction<Object, EventArgs>The delegate to invoke when the ValueChanged event is raised.

Properties

Instance member AllowEmptyText

Boolean: Gets or sets whether the control allows empty text. (Default: False)

Instance member DecimalPlaces

Int32: Returns or sets the number of decimal places to display in the spin box (also known as an up-down control). (Default: 0)

Throws:

Instance member Hexadecimal

Boolean: Returns or sets whether the spin box (also known as an up-down control) should display the value it contains in hexadecimal format. (Default: False)

Instance member Increment

Decimal: Returns 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. (Default: 1)

Throws:

Instance member Maximum

Decimal: Returns or sets the maximum value for the spin box (also known as an up-down control). (Default: 100)

Instance member Minimum

Decimal: Returns or sets the minimum allowed value for the spin box (also known as an up-down control). (Default: 0)

Instance member NullableValue

Nullable<Decimal>: Returns or sets the Value assigned to the spin box (also known as an up-down control) with the difference that when the text is empty it returns null. (Default: 0)

This property should be used when the NumericUpDown may hold a null value and it's bound to a database nullable column. Throws:

Instance member Postfix

String: Returns or sets a string to display after the value. (Default: "")

Instance member Prefix

String: Returns or sets a string to display before the value. (Default: "")

Instance member ThousandsSeparator

Boolean: Returns or sets whether a thousands separator is displayed in the spin box (also known as an up-down control) when appropriate. (Default: False)

Instance member Value

Decimal: Returns or sets the value assigned to the spin box (also known as an up-down control). (Default: 0)

Throws:

Methods

Protected member OnLeave(e)

Fires the Leave event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnValidating(e)

Fires the Validating event.

ParameterTypeDescription
eCancelEventArgsA EventArgs that contains the event data.

Protected member OnValueChanged(e)

Fires the ValueChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnWebEvent(e)

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Protected member OnWebUpdate(state)

Updates the client component using the state information.

ParameterTypeDescription
stateObjectDynamic state object.

Protected member UpdateEditText()

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

Protected member ValidateEditText()

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

Returns: Boolean. True if the text represents a valid value.

Events

Instance member ValueChanged

EventHandler Fired when the Value property has been changed in some way.

Inherited By

NameDescription
DataGridViewNumericUpDownEditingControlRepresents a NumericUpDown control that can be hosted in a DataGridViewNumericUpDownCell.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
ILabelProvides access to the LabelWrapper associated with the controls that implement this interface.
IReadOnlyProvides access to the ReadOnly property for coontrols that support the read-only mode.
IValidationProvides access to the validation events and properties property for controls that support validation.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.