UpDownBase

Wisej.Web.UpDownBase

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.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

UpDownBase()

Initializes a new instance of the UpDownBase class.

Properties

AutoSize

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

BorderStyle

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

DefaultSize

Size: Returns the default size of the control.

Editable

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

EnableNativeContextMenu

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

HideUpDownButtons

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

InterceptArrowKeys

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

Invalid

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

InvalidMessage

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

Label

LabelWrapper: Provides a label related to the control.

LabelText

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

MaximumSize

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

MinimumSize

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

ReadOnly

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

SelectOnEnter

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

TextAlign

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

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.

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

OnEditableChanged(e)

Fires the EditableChanged event.

Parameter
Type
Description

e

An EventArgs that contains the event data.

OnReadOnlyChanged(e)

Fires the ReadOnlyChanged event.

Parameter
Type
Description

e

An EventArgs that contains the event data.

OnValidating(e)

Fires the Validating event.

Parameter
Type
Description

e

A EventArgs that contains the event data.

OnWebEvent(e)

Processes the event from the client.

Parameter
Type
Description

e

Event arguments.

OnWebRender(config)

Renders the client component.

Parameter
Type
Description

config

Dynamic configuration object.

SetBoundsCore(x, y, width, height, specified)

Sets the specified bounds of the ComboBox control.

Parameter
Type
Description

x

The new Left property value of the control.

y

The new Top property value of the control.

width

The new Width property value of the control.

height

Not used.

specified

A combination of the BoundsSpecified values.

UpdateEditText()

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

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

AutoSizeChanged

EventHandler Fired when the value of the AutoSize property changes.

EditableChanged

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

ReadOnlyChanged

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

Inherited By

Name
Description

Represents a spinner control that displays string values.

Represents a spinner control that displays numeric values.

Represents a spinner control that displays TimeSpan values.

Implements

Name
Description

Provides access to the UserData and Tag properties associated to the component implementing this interface.

Bindable components implement this interface.

Controls that support drag & drop operations implement this interface.

Provides access to the LabelWrapper associated with the controls that implement this interface.

Provides access to the ReadOnly property for coontrols that support the read-only mode.

Provides access to the validation events and properties property for controls that support validation.

All wisej components implement this interface.

All wisej controls derived from the Control class must implement this interface.

Allows an object to serialize itself.

Last updated

Was this helpful?