ListBox.ObjectCollection
Wisej.Web.ListBox ObjectCollection
Last updated
Wisej.Web.ListBox ObjectCollection
Last updated
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Represents the collection of items in a Wisej.Web.ListBox control.
Int32: Returns the number of items in the collection.
Boolean: Returns a value indicating whether this collection can be modified.
Object: Retrieves the item at the specified index within the collection.
Throws:
ArgumentOutOfRangeException 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 ListBox.
Parameter | Type | Description |
---|---|---|
item | An object representing the item to add to the collection. |
Returns: Int32. The zero-based index of the item in the collection.
Throws:
ArgumentNullException The item parameter was null.
Adds a collection of items to the list.
Parameter | Type | Description |
---|---|---|
items | Collection of items to add to the list. |
Removes all items from the ListBox.
Determines if the specified item is located within the collection.
Parameter | Type | Description |
---|---|---|
value | An object representing the item to locate in the collection. |
Returns: Boolean. true if the item is located within the collection; otherwise, false.
Copies the entire collection into an existing array of objects at a specified location within the array.
Parameter | Type | Description |
---|---|---|
destination | The object array to copy the collection to. | |
index | The location in the destination array to copy the collection to. |
Returns an enumerator that can be used to iterate through the item collection.
Returns: IEnumerator. A IEnumerator that represents the item collection.
Retrieves the index within the collection of the specified item.
Parameter | Type | Description |
---|---|---|
value | An object representing the item to locate in the collection. |
Returns: Int32. The zero-based index where the item is located within the collection; otherwise, -1.
Throws:
ArgumentNullException The value parameter was null.
Inserts an item into the collection at the specified index.
Parameter | Type | Description |
---|---|---|
index | The zero-based index location where the item is inserted. | |
item | An object representing the item to insert. |
Throws:
ArgumentNullException The item was null.
ArgumentOutOfRangeException The index was less than zero; or the index was greater than the count of items in the collection.
Removes the specified item from the ListBox.
Removes an item from the ListBox at the specified index.
Parameter | Type | Description |
---|---|---|
index | The index of the item to remove. |
Throws:
ArgumentOutOfRangeException The index parameter was less than zero, or the index parameter was greater than or equal to the count of items in the collection.
CollectionChangeEventHandler Fired when the collection changes.
Name | Description |
---|---|
Represents the collection of items in a CheckedListBox. |