Skip to main content
Version: 4.1

CheckedIndexCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents the collection containing the indexes to the checked items in a list view control.

public class CheckedIndexCollection : IList<Int32>, ICollection<Int32>, IEnumerable<Int32>, IEnumerable

Properties​

Instance member Count​

Int32: Returns the number of items in the collection.

Instance member IsReadOnly​

Boolean: Returns whether the collection is read-only.

Instance member Item(index)​

Int32: Returns the index value at the specified index within the collection.

Throws:

Methods​

Instance member Add(index)​

Adds the item at the specified index in the Items collection to the CheckedIndexCollection.

ParameterTypeDescription
indexInt32The index of the item in the Items collection to add to the CheckedIndexCollection.

Returns: Int32. The new count of selected items.

Throws:

Instance member Clear()​

Clears the selection.

Instance member Contains(checkedIndex)​

Determines whether the specified index is located in the collection.

ParameterTypeDescription
checkedIndexInt32The index of the checked item to locate in the collection.

Returns: Boolean. true if the specified index from the ListViewItemCollection for the ListView is an item in the collection; otherwise, false.

Instance member CopyTo(array, index)​

Copies the list of checked indexes into the specified array starting at the specified index .

ParameterTypeDescription
arrayInt32[]Array that will received the list of selected indexes.
indexInt32Starting index in array .

Instance member GetEnumerator()​

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

Returns: IEnumerator<Int32>. An IEnumerator that represents the checked index collection.

Instance member IndexOf(checkedIndex)​

Returns the index within the CheckedIndexCollection of the specified index from the ListViewItemCollection of the list view control.

ParameterTypeDescription
checkedIndexInt32The zero-based index from the ListViewItemCollection to locate in the collection.

Returns: Int32. The zero-based index in the collection where the specified index of the ListViewItemCollection is located within the CheckedIndexCollection; otherwise, -1 if the index is not located in the collection.

Instance member Remove(index)​

Removes the item at the specified index in the Items collection from the CheckedIndexCollection.

ParameterTypeDescription
indexInt32The index of the item in the Items collection to remove from the CheckedIndexCollection.

Throws: