Skip to main content
Version: 3.5

ObjectCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the collection of items in a CheckedListBox.

public class ObjectCollection : ObjectCollection

Methods

Instance memberAdd(item)

Adds an item to the list of items for a ListBox.

ParameterTypeDescription
itemObjectAn object representing the item to add to the collection.

Returns: Int32. The zero-based index of the item in the collection.

Throws:

Instance memberAdd(item, isChecked)

Adds an item to the list of items for a CheckedListBox.

ParameterTypeDescription
itemObjectAn object representing the item to add to the collection.
isCheckedBooleanTrue to check the item.

Returns: Int32. The zero-based index of the item in the collection.

Throws:

Instance memberAdd(item, check)

Adds an item to the list of items for a CheckedListBox.

ParameterTypeDescription
itemObjectAn object representing the item to add to the collection.
checkCheckStateThe check state for the new item.

Returns: Int32.

Instance memberAddRange(items)

Adds a collection of items to the list.

ParameterTypeDescription
itemsObject[]Collection of items to add to the list.

Instance memberClear()

Removes all items from the CheckedListBox control.

Instance memberInsert(index, item)

Inserts an item into the collection at the specified index.

ParameterTypeDescription
indexInt32The zero-based index location where the item is inserted.
itemObjectAn object representing the item to insert.

Throws:

Instance memberInsert(index, item, check)

Inserts an item into the collection at the specified index.

ParameterTypeDescription
indexInt32The zero-based index location where the item is inserted.
itemObjectAn object representing the item to insert.
checkCheckStateThe check state for the new item.

Throws:

Instance memberRemoveAt(index)

Removes an item from the ListBox at the specified index.

ParameterTypeDescription
indexInt32The 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.