Skip to main content
Version: 4.1

UpDownBase

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Implements the basic functionality required by a spin box (also known as an up-down control).

public class UpDownBase : Control, ILabel, IReadOnly, IValidation

Constructors

Instance member UpDownBase()

Initializes a new instance of the UpDownBase class.

Properties

Instance member AutoSize

Boolean: Returns or sets whether the height of the control is set automatically. (Default: True)

Instance member BorderStyle

BorderStyle: Returns or sets the border style for the spin box (also known as an up-down control). (Default: Solid)

Protected member DefaultSize

Size: Returns the default size of the control.

Instance member Editable

Boolean: Returns or sets whether the user can edit the text in the control. (Default: True)

Instance member EnableNativeContextMenu

Boolean: Enables or disables the browser's context menu. (Default: True)

Instance member HideUpDownButtons

Boolean: Returns or sets the visibility of the spinner buttons. (Default: False)

Instance member InterceptArrowKeys

Boolean: Returns or sets whether the user can use the UP ARROW and DOWN ARROW keys to select values. (Default: True)

Instance member Invalid

Boolean: Returns or sets a value that indicates that the control is invalid.

Instance member InvalidMessage

String: Returns or sets the invalid message that is shown in the invalid tooltip. (Default: "")

Instance member Label

LabelWrapper: Provides a label related to the control.

Instance member LabelText

String: Returns or sets the localizable label associated with this control. (Default: "")

Instance member MaximumSize

Size: Returns or sets the maximum size of the spin box (also known as an up-down control).

Instance member MinimumSize

Size: Returns or sets the minimum size of the spin box (also known as an up-down control).

Instance member ReadOnly

Boolean: Returns or sets whether the control is read-only. (Default: False)

Instance member SelectOnEnter

Boolean: Selects the text when gaining the focus. (Default: False)

Instance member TextAlign

HorizontalAlignment: Returns or sets the alignment of the text in the spin box (also known as an up-down control). (Default: Left)

Instance member UpDownAlign

HorizontalAlignment: Returns or sets the alignment of the up and down buttons on the spin box (also known as an up-down control). (Default: Right)

When this value is set to Center, the spin box (editable part of the control) is centered between the up and down buttons.

Instance member Wrap

Boolean: Returns or sets whether the collection of items continues to the first or last item if the user continues past the end of the list. (Default: False)

Methods

Protected member OnEditableChanged(e)

Fires the EditableChanged event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnReadOnlyChanged(e)

Fires the ReadOnlyChanged 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 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 SetBoundsCore(x, y, width, height, specified)

Sets the specified bounds of the ComboBox control.

ParameterTypeDescription
xInt32The new Left property value of the control.
yInt32The new Top property value of the control.
widthInt32The new Width property value of the control.
heightInt32Not used.
specifiedBoundsSpecifiedA combination of the BoundsSpecified values.

Protected member UpdateEditText()

When overridden in a derived class, updates the text displayed in the spin box (also known as an up-down control).

Protected member ValidateEditText()

When overridden in a derived class, validates 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 AutoSizeChanged

EventHandler Fired when the value of the AutoSize property changes.

Instance member EditableChanged

EventHandler Fired when the value of the Editable property has changed.

Instance member ReadOnlyChanged

EventHandler Fired when the value of the ReadOnly property has changed.

Inherited By

NameDescription
DomainUpDownRepresents a spinner control that displays string values.
NumericUpDownRepresents a spinner control that displays numeric values.
DataGridViewNumericUpDownEditingControlRepresents a NumericUpDown control that can be hosted in a DataGridViewNumericUpDownCell.
TimeUpDownRepresents a spinner control that displays TimeSpan values.

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.