Skip to main content
Version: 4.2

UpDownBase

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

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

public abstract class UpDownBase : Control, ILabel, IReadOnly, IValidation

Derives from or implements Control, IWisejControl, ILabel, IReadOnly, IValidation.

This type is abstract. Use a concrete implementation or derive a class to supply the required behavior.

  • Selectable This property is not relevant for this class.
  • ReadOnly Gets or sets whether the control is read-only.
  • SelectOnEnter Selects the text when gaining the focus.

Constructors​

Instance member UpDownBase()​

Initializes a new instance of the UpDownBase class.

Properties​

Instance member AutoSize​

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

Value: true if the height of the control automatically adjusts to the font and the theme; otherwise, false. The default is true.

Instance member BorderStyle​

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

Value: One of the BorderStyle values. The default value is Solid.

Protected member DefaultSize​

Size: Returns the default size of the control.

Value: The default Size of the control.

Instance member Editable​

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

Value: true if the control is editable; otherwise, false. The default is true.

Instance member EnableNativeContextMenu​

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

Instance member HideUpDownButtons​

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

Instance member InterceptArrowKeys​

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

Value: true if the control allows the use of the UP ARROW and DOWN ARROW keys to select values; otherwise, false. The default value is true.

Instance member Invalid​

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

Instance member InvalidMessage​

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

Value: The text displayed in the invalid tooltip.

Instance member Label​

LabelWrapper: Provides a label related to the control.

Instance member LabelText​

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

Instance member ReadOnly​

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

Value: true if the control is read-only; otherwise, false. The default is false.

Instance member SelectOnEnter​

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

Value: true if the text is selected when the text field gains the focus; otherwise, false. The default is false.

Instance member TextAlign​

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

Value: One of the HorizontalAlignment values. The default value is Left.

Instance member UpDownAlign​

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

Value: One of the HorizontalAlignment values. The default value is 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: Gets 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)

Value: true if the list starts again when the user reaches the beginning or end of the collection; otherwise, false. The default value is false.

Methods​

Protected member OnEditableChanged(e)​

Raises the EditableChanged event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnReadOnlyChanged(e)​

Raises the ReadOnlyChanged event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnValidating(e)​

Raises 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 Occurs when the value of the AutoSize property changes.

Instance member EditableChanged​

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

Instance member ReadOnlyChanged​

EventHandler Occurs 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.