Wisej.Web.ListBox SelectedObjectCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents the collection of selected items in the ListBox.
Int32: Returns the number of selected items.
Boolean: Returns whether the collection is read-only.
Object: Returns the selected item.
value
value
Returns: Boolean.
destination
index
Returns: IEnumerator.
value
Returns: Int32.
value
Wisej.Web.ListBox
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents a control to display a list of items.
Initializes a new instance of ListBox.
Initializes a new instance of the ListBox class with the specified settings.
onSelectedIndexChanged
Initializes a new instance of ListBox class with the specified settings.
dataSource
displayMember
valueMember
iconMember
onSelectedIndexChanged
Initializes a new instance of the ListBox class with the specified settings.
location
Initial location.
size
Initial size.
onSelectedIndexChanged
Initializes a new instance of the ListBox class with the specified settings.
location
Initial location.
size
Initial size.
dataSource
displayMember
valueMember
iconMember
onSelectedIndexChanged
Boolean: Returns or sets a value indicating that the control can display HTML in the Text property. (Default: False
)
Boolean: Returns a value indicating whether the ListBox currently enables selection of list items.
Size: Returns the default size for a text box control.
Boolean: Returns or sets whether a horizontal scroll bar is displayed in the control. (Default: False
)
Boolean: Returns or sets whether items are selected incrementally as the user types within a timeout of 1 second. (Default: True
)
Int32: Gets or sets the height of the list items. When the value is -1, uses the value set in the theme. (Default: -1
)
Throws:
ArgumentOutOfRangeException The assigned value is less than -1; or the assigned value is greater than 500.
ObjectCollection: Returns the collection of the items contained in this ListBox.
LabelWrapper: Provides a label related to the control.
String: Returns or sets the localizable label associated with this control. (Default: ""
)
Boolean: Returns or sets whether the items in the list are send to the client when the list becomes visible the first time. (Default: False
)
Orientation: Returns or sets whether the list box displays the items vertically (default) or horizontally. Since 3.1 (Default: Vertical
)
Throws:
InvalidOperationException Horizontal orientation is not supported with virtual scrolling.
Boolean: Returns or sets whether the control is read-only. (Default: False
)
Boolean: Returns or sets whether the item under the pointer gets selected on a right click. (Default: False
)
When the right click lands outside of a selected area the selection is not changed regardless of the value of RightClickSelection.
Boolean: Returns or sets whether the vertical scroll bar is shown at all times. (Default: False
)
Int32: Returns or sets the zero-based index of the currently selected item in a ListBox.
Throws:
ArgumentOutOfRangeException The assigned value is less than -1 or greater than or equal to the item count.
ArgumentException The SelectionMode property is set to None.
Int32: Returns or sets the SelectedIndex without triggering any event.
SelectedIndexCollection: Returns a collection that contains the zero-based indexes of all currently selected items in the ListBox.
Object: Returns or sets the currently selected item in the ListBox.
SelectedObjectCollection: Returns a collection containing the currently selected items in the ListBox.
SelectionMode: Returns or sets the method in which items are selected in the ListBox. (Default: One
)
Boolean: Returns or sets whether the items in the combo box are sorted. (Default: False
)
Throws:
ArgumentException An attempt was made to sort a ListBox that is attached to a data source.
ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.
Int32: Returns or sets the index of the first visible item in the ListBox.
Not used. Kept for compatibility.
Unselects all items in the ListBox.
Creates a new instance of the item collection.
Returns: ObjectCollection. A ObjectCollection that represents the new item collection.
Disposes the control.
disposing
true when this method is called by the application rather than a finalizer.
Not used. Kept for compatibility.
Returns the index of the first item in the ListBox that starts with the specified string.
text
Returns: Int32. The zero-based index of the first item found; returns -1 if no match is found.
Returns the index of the first item in the ListBox beyond the specified index that contains the specified string. The search is not case sensitive.
text
startIndex
The zero-based index of the item before the first item to be searched. Set to -1 to search from the beginning of the control.
Returns: Int32. The zero-based index of the first item found; returns -1 if no match is found, or 0 if the text parameter specifies Empty.
Finds the first item in the combo box that matches the specified string.
text
Returns: Int32. The zero-based index of the first item found; returns -1 if no match is found, or 0 if the text parameter specifies Empty.
Finds the first item after the specified index that matches the specified string.
text
startIndex
The zero-based index of the item before the first item to be searched. Set to -1 to search from the beginning of the control.
Returns: Int32. The zero-based index of the first item found; returns -1 if no match is found, or 0 if the text parameter specifies Empty.
text
startIndex
ignoreCase
ignoreHtml
ignoreCrLf
Returns: Int32.
value
Returns: Int32.
value
Returns: Int32.
Returns a value indicating whether the specified item is selected.
index
The zero-based index of the item that determines whether it is selected.
Returns: Boolean. true if the specified item is currently selected in the ListBox; otherwise, false.
Throws:
ArgumentOutOfRangeException The specified index was outside the range of valid values.
Fires the DataSourceChanged event.
e
Fires the DisplayMemberChanged event.
e
Fires the Load event.
e
Fires the ReadOnlyChanged event.
e
Fires the SelectedIndexChanged event.
e
Fires the SortedChanged event.
e
Fires the ToolClick event.
e
Fires the ValueMemberChanged event.
e
Processes the event from the client.
e
Event arguments.
Renders the client component.
config
Dynamic configuration object.
Updates the client component using the state information.
state
Dynamic state object.
Refreshes the item contained at the specified location.
index
The location of the item to refresh.
Reloads all the ListBox items from the data source.
Selects all the items in the ListBox.
Sets the object with the specified index in the derived class.
index
The array index of the object.
value
The object.
Sets the specified array of objects in a collection in the derived class.
value
An array of items.
Selects or clears the selection for the specified item in a ListBox.
index
selected
true to select the specified item; otherwise, false.
Throws:
ArgumentOutOfRangeException The specified index was outside the range of valid values.
InvalidOperationException The SelectionMode property is set to None.
Sorts the items in the ListBox.
EventHandler Fired when the LazyLoading property is true and the ListBox is first shown.
When LazyLoading is true An application may fill the items at any time prior to the ListBox being shown, or while processing the Load event.
EventHandler Fired when the value of the ReadOnly property has changed.
EventHandler Fired when the SelectedIndex property or the SelectedIndices collection has changed.
EventHandler Fired when the Sorted property has changed.
ToolClickEventHandler Fired when a ComponentTool is clicked.
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 validation events and properties property for controls that support validation.
All wisej components implement this interface.
Allows an object to serialize itself.
Wisej.Web.ListBox SelectedIndexCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents the collection containing the indexes to the selected items in a ListBox.
Int32: Returns the number of selected items.
Boolean: Returns whether the collection is read-only.
Int32: Returns the index of the selected item.
Selects the item at the specified index.
index
Clears all the selected items.
Checks if the specified index is in the selected items collection.
index
The index of the item to check.
Returns: Boolean.
destination
index
Returns: IEnumerator.
Finds the selected index in the collection.
index
Returns: Int32.
Unselects the specified index.
index
Wisej.Web.ListBox ObjectCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents the collection of items in a Wisej.Web.ListBox control.
: Returns the number of items in the collection.
: Returns or sets the dirty state for the list. When true, the list of items must be sent back to the client.
: Returns or sets the new state for the list. When true, the entire list is cleared and reloaded on the client.
: Returns a value indicating whether this collection can be modified.
Throws:
Throws:
Adds a collection of items to the list.
Throws:
Removes all the items from the list without checking for the data source binding.
Resets all selected items.
Determines if the specified item is located within the collection.
Throws:
Copies the entire collection into an existing array of objects at a specified location within the array.
Returns an instance of the Element wrapper class.
Fills the collection items without checking the existence of the data source on the owner.
Returns an enumerator that can be used to iterate through the item collection.
Returns the first selected element.
Returns the element at the index.
Returns the real index in the collection accounting for the deleted items that have not been committed to the client yet.
Returns the list of selected elements.
Returns the indexes of the selected items.
Retrieves the index within the collection of the specified item.
Throws:
Retrieves the index within the collection of the specified item.
Throws:
Inserts an item into the collection at the specified index.
Throws:
Returns true if the item at the index is selected.
Throws:
Renders the list to the json definition for the client.
Renders the list of selected indexes.
Changes a single element in the list.
Sets the selected state of the item at the index.
Sorts the items by their value.
Optional handler.
Initial .
Initial .
Initial .
Initial .
Optional handler.
Optional handler.
Initial .
Initial .
Initial .
Initial .
Optional handler.
The to search for.
The to search for.
The to search for.
The to search for.
A that contains the event data.
A that contains the event data.
A that contains the event data.
An that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
The zero-based index of the item in a to select or clear the selection for.
Displays a in which a check box is displayed to the left of each item.
Provides access to the associated with the controls that implement this interface.
Provides access to the property for coontrols that support the read-only mode.
Provides access to the property and event for controls that implement this interface.
All wisej controls derived from the class must implement this interface.
: Retrieves the item at the specified index within the collection.
The index was less than zero; or the index was greater of equal to the count of items in the collection.
Adds an item to the list of items for a .
Returns: . The zero-based index of the item in the collection.
The item parameter was null.
items is null.
Removes all items from the .
Returns: . true if the item is located within the collection; otherwise, false.
value is null.
Returns: .
Returns: . A that represents the item collection.
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: . The zero-based index where the item is located within the collection; otherwise, -1.
The value parameter was null.
Returns: . The zero-based index where the item is located within the collection; otherwise, -1.
The element parameter was null.
The item was null.
The index was less than zero; or the index was greater than the count of items in the collection.
Returns: .
Fires the event.
Removes the specified item from the .
Removes an item from the at the specified index.
The index parameter was less than zero, or the index parameter was greater than or equal to the count of items in the collection.
Returns: .
Returns: .
Returns: .
Fired when the collection changes.
item
An object representing the item to add to the collection.
items
Collection of items to add to the list.
value
An object representing the item to locate in the collection.
destination
The object array to copy the collection to.
index
The location in the destination array to copy the collection to.
value
Wrapped value.
state
Initial state.
items
Collection of items to add to the list.
index
index
value
An object representing the item to locate in the collection.
element
An object representing the item to locate in the collection.
index
The zero-based index location where the item is inserted.
item
An object representing the item to insert.
index
action
One of CollectionChangeAction indicating the reason the collection has changed.
element
The element that was added or removed from the collection, or null.
value
The Object to remove from the list.
index
The index of the item to remove.
index
Index of the item to change.
value
New item value.
index
Index of the item to select or unselect.
selected
New state of the item.
Represents the collection of items in a CheckedListBox.