CheckedListBox.CheckedIndexCollection

Wisej.Web.CheckedListBox CheckedIndexCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the collection containing the indexes to the selected items in a CheckedListBox.

public class CheckedIndexCollection : IList, ICollection, IEnumerable

Properties

Count

Int32: Returns the number of selected items.

IsReadOnly

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

Item(index)

Int32: Returns the index of a checked item in the CheckedListBox control.

Throws:

  • ArgumentException The index is less than zero.-or- The index is not in the collection.

Methods

Contains(index)

Determines if the specified index is located within the collection.

Parameter
Type
Description

index

The index to locate in the collection.

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

CopyTo(array, index)

Copies the entire collection into an existing array at a specified location within the array.

Parameter
Type
Description

array

The destination array.

index

The zero-based relative index in array at which copying begins.

Throws:

GetEnumerator()

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

Returns: IEnumerator. An IEnumerator for navigating through the list.

IndexOf(index)

Returns an index into the collection of checked indexes.

Parameter
Type
Description

index

The index of the checked item.

Returns: Int32. The index that specifies the index of the checked item or -1 if the index parameter is not in the checked indexes collection.

Last updated