All pages
Powered by GitBook
1 of 2

Loading...

Loading...

DomainUpDown

Wisej.Web.DomainUpDown

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

  • Control

    • UpDownBase

Represents a spinner control that displays string values.

Constructors

DomainUpDown()

Initializes a new instance of the class.

DomainUpDown(onSelectedItemChanged)

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

Name
Type
Description

DomainUpDown(label, onSelectedItemChanged)

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

Name
Type
Description

DomainUpDown(location, size, onSelectedItemChanged)

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

Name
Type
Description

DomainUpDown(label, location, size, onSelectedItemChanged)

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

Name
Type
Description

Properties

DefaultSize

: Returns the default size for a text box control.

Items

: A collection of objects assigned to the spinner control.

SelectedIndex

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

Throws:

  • The assigned value is less than the default, -1; or the assigned value is greater than the count.

SelectedItem

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

Sorted

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

Text

: 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 event.

Parameter
Type
Description

OnSortedChanged(e)

Fires the event.

Parameter
Type
Description

OnWebEvent(e)

Processes the event from the client.

Parameter
Type
Description

OnWebRender(config)

Renders the client component.

Parameter
Type
Description

OnWebUpdate(state)

Updates the client component using the state information.

Parameter
Type
Description

UpdateEditText()

Displays the value of the currently selected item.

Events

SelectedItemChanged

Fired when the property has been changed.

SortedChanged

Fired when the property has changed.

Implements

Name
Description

All wisej components implement this interface.

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

Allows an object to serialize itself.

onSelectedItemChanged

Action<Object, EventArgs>

The delegate to invoke when the SelectedItemChanged event is raised.

label

String

Initial LabelText value.

onSelectedItemChanged

Action<Object, EventArgs>

The delegate to invoke when the SelectedItemChanged event is raised.

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.

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>

e

EventArgs

An EventArgs that contains the event data.

e

EventArgs

A EventArgs that contains the event data.

e

WisejEventArgs

Event arguments.

config

Object

Dynamic configuration object.

state

Object

Dynamic state object.

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.

DomainUpDown
Public Class DomainUpDown
    Inherits UpDownBase
DomainUpDown
DomainUpDown
DomainUpDown
DomainUpDown
DomainUpDown
Size
DomainUpDownItemCollection
Int32
ArgumentOutOfRangeException
Items
Object
Boolean
String
SelectedItemChanged
SortedChanged
EventHandler
SelectedItem
EventHandler
Sorted
public class DomainUpDown : UpDownBase

The delegate to invoke when the event is raised.

SelectedItemChanged
IWisejComponent
IWisejControl
Control
IWisejSerializable

DomainUpDown.DomainUpDownItemCollection

Wisej.Web.DomainUpDown DomainUpDownItemCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Encapsulates a collection of objects for use by the DomainUpDown class.

public class DomainUpDownItemCollection : IList, ICollection, IEnumerable
Public Class DomainUpDownItemCollection
    Inherits IList
    Implements ICollection, IEnumerable

Properties

Count

: Returns the number of items in the collection.

IsReadOnly

: Returns a value indicating whether this collection can be modified.

Item(index)

: Retrieves the item at the specified index within the collection.

Throws:

  • The index was less than zero; or the index was greater of equal to the count of items in the collection.

Methods

Add(item)

Adds an object to the end of the collection.

Parameter
Type
Description

Returns: . The index at which the item has been added.

AddRange(items)

Adds a collection of objects to the end of the collection.

Parameter
Type
Description

Clear()

Removes all items from the control.

Contains(item)

Determines if the specified item is located within the collection.

Parameter
Type
Description

Returns: . true if the item is located within the collection; otherwise, false.

GetEnumerator()

Returns an enumerator that can be used to iterate through the item collection.

Returns: . A that represents the item collection.

IndexOf(item)

Retrieves the index within the collection of the specified item.

Parameter
Type
Description

Returns: . The zero-based index where the item is located within the collection; otherwise, -1.

Throws:

  • The item parameter was null.

Insert(index, item)

Inserts an element into the collection at the specified index.

Parameter
Type
Description

Throws:

  • index is less than zero, or index is greater than number of items in the collection.

Remove(item)

Removes the first occurrence of a specific object from the collection.

Parameter
Type
Description

RemoveAt(index)

Removes the element at the specified index of the collection.

Parameter
Type
Description

Throws:

  • index is less than zero; or index is equal to or greater than number of items in the collection.

item

Object

The Object to be added to the end of the collection. The value can be null.

items

Object[]

Items to add to the end of the collection.

item

Object

An object representing the item to locate in the collection.

item

Object

An object representing the item to locate in the collection.

index

Int32

The zero-based index at which item should be inserted.

item

Object

The Object to insert. The value can be null.

item

Object

The Object to remove from the collection. The value can be null.

index

Int32

The zero-based index of the element to remove.

Int32
Boolean
Object
ArgumentOutOfRangeException
Int32
DomainUpDown
Boolean
IEnumerator
IEnumerator
Int32
ArgumentNullException
ArgumentOutOfRangeException
ArgumentOutOfRangeException