CheckedObjectCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Represents the collection of checked items in the CheckedListBox.
- C#
- VB.NET
public class CheckedObjectCollection : IList, ICollection, IEnumerable
Public Class CheckedObjectCollection
Inherits IList
Implements 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)
Object: Return an item in the checked items collection.
Throws:
- NotSupportedException The object cannot be set.
Methods
Contains(item)
Determines if the specified item is located within the collection.
| Parameter | Type | Description |
|---|---|---|
| item | Object | An object representing the item to locate in the collection. |
Returns: Boolean. true if the item 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 | Array | The destination array. |
| index | Int32 | The zero-based relative index in array at which copying begins. |
Throws:
- ArgumentNullException array is null.
- RankException array is multidimensional.
- ArgumentOutOfRangeException index is less than zero.
- ArgumentException The number of elements in the source Array is greater than the available space from index to the end of the destination Array.
- ArrayTypeMismatchException The type of the source Array cannot be cast automatically to the type of the destination Array.
GetEnumerator()
Returns an enumerator that can be used to iterate through the CheckedItems collection.
Returns: IEnumerator. An IEnumerator for navigating through the list.
IndexOf(item)
Returns an index into the collection of checked items.
| Parameter | Type | Description |
|---|---|---|
| item | Object | The object whose index you want to retrieve. This object must belong to the checked items collection. |
Returns: Int32. The index of the object in the checked item collection or -1 if the object is not in the collection.