DomainUpDown
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.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
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/>".
Events
SelectedItemChanged
EventHandler Fired when the SelectedItem property has been changed.
SortedChanged
EventHandler Fired when the Sorted property has changed.
Implements
| Name | Description |
|---|---|
| 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. |