DomainUpDown
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Represents a spinner control that displays string values.
- C#
- VB.NET
public class DomainUpDown : UpDownBase
Public Class DomainUpDown
Inherits UpDownBase
Constructors
DomainUpDown()
Initializes a new instance of the DomainUpDown class.
DomainUpDown(onSelectedItemChanged)
Initializes a new instance of the DomainUpDown class with specific initial settings.
| Name | Type | Description |
|---|---|---|
| onSelectedItemChanged | Action<Object, EventArgs> | The delegate to invoke when the SelectedItemChanged event is raised. |
DomainUpDown(label, onSelectedItemChanged)
Initializes a new instance of the DomainUpDown class with specific initial settings.
| Name | Type | Description |
|---|---|---|
| label | String | Initial LabelText value. |
| onSelectedItemChanged | Action<Object, EventArgs> | The delegate to invoke when the SelectedItemChanged event is raised. |
DomainUpDown(location, size, onSelectedItemChanged)
Initializes a new instance of the DomainUpDown class with specific initial settings.
| Name | Type | Description |
|---|---|---|
| location | Point | The Point specifying the upper-left corner of the DomainUpDown control relative to the upper-left corner of its container. |
| size | Size | The Size of the DomainUpDown control. |
| onSelectedItemChanged | Action<Object, EventArgs> | The delegate to invoke when the SelectedItemChanged event is raised. |
DomainUpDown(label, location, size, onSelectedItemChanged)
Initializes a new instance of the DomainUpDown class with specific initial settings.
| Name | Type | Description |
|---|---|---|
| label | String | Initial LabelText value. |
| location | Point | The Point specifying the upper-left corner of the DomainUpDown control relative to the upper-left corner of its container. |
| size | Size | The Size of the DomainUpDown control. |
| onSelectedItemChanged | Action<Object, EventArgs> | The delegate to invoke when the SelectedItemChanged event is raised. |
Properties
DefaultSize
Size: Returns the default size for a text box control.
Items
DomainUpDownItemCollection: A collection of objects assigned to the spinner control.
SelectedIndex
Int32: Returns or sets the index value of the selected item. (Default: -1)
Throws:
- ArgumentOutOfRangeException The assigned value is less than the default, -1; or the assigned value is greater than the Items count.
SelectedItem
Object: Returns or sets the selected item based on the index value of the selected item in the collection.
Sorted
Boolean: Returns or sets whether the item collection is sorted. (Default: False)
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
OnSelectedItemChanged(e)
Fires the SelectedItemChanged event.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | An EventArgs that contains the event data. |
OnSortedChanged(e)
Fires the SortedChanged event.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | A EventArgs that contains the event data. |
OnWebEvent(e)
Processes the event from the client.
| Parameter | Type | Description |
|---|---|---|
| e | WisejEventArgs | Event arguments. |
OnWebRender(config)
Renders the client component.
| Parameter | Type | Description |
|---|---|---|
| config | Object | Dynamic configuration object. |
OnWebUpdate(state)
Updates the client component using the state information.
| Parameter | Type | Description |
|---|---|---|
| state | Object | Dynamic state object. |
UpdateEditText()
Displays the value of the currently selected item.
Events
SelectedItemChanged
EventHandler Fired when the SelectedItem property has been changed.
SortedChanged
EventHandler Fired when the Sorted property has changed.
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| IBindableComponent | Bindable components implement this interface. |
| IDropTarget | Controls that support drag & drop operations implement this interface. |
| ILabel | Provides access to the LabelWrapper associated with the controls that implement this interface. |
| IReadOnly | Provides access to the ReadOnly property for coontrols that support the read-only mode. |
| IValidation | Provides access to the validation events and properties property for controls that support validation. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejControl | All wisej controls derived from the Control class must implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |