Skip to main content
Version: 4.1

DomainUpDown

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a spinner control that displays string values.

public class DomainUpDown : UpDownBase

Constructors

Instance member DomainUpDown()

Initializes a new instance of the DomainUpDown class.

Instance member DomainUpDown(onSelectedItemChanged)

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

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

Instance member DomainUpDown(label, onSelectedItemChanged)

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

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

Instance member DomainUpDown(location, size, onSelectedItemChanged)

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

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

Instance member DomainUpDown(label, location, size, onSelectedItemChanged)

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

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

Properties

Protected member DefaultSize

Size: Returns the default size for a text box control.

Instance member Items

DomainUpDownItemCollection: A collection of objects assigned to the spinner control.

Instance member SelectedIndex

Int32: Returns or sets the index value of the selected item. (Default: -1)

Throws:

Instance member SelectedItem

Object: Returns or sets the selected item based on the index value of the selected item in the collection.

Instance member Sorted

Boolean: Returns or sets whether the item collection is sorted. (Default: False)

Instance member Text

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

When AllowHtml is set to true, the text can contain HTML content. If the text contains new lines (CRLF) but doesn't contain HTML elements (at least one "<") all CRLF are automatically substituted with "<BR/>".

Methods

Protected member OnSelectedItemChanged(e)

Fires the SelectedItemChanged event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnSortedChanged(e)

Fires the SortedChanged 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 value of the currently selected item.

Events

Instance member SelectedItemChanged

EventHandler Fired when the SelectedItem property has been changed.

Instance member SortedChanged

EventHandler Fired when the Sorted property has changed.

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.