SelectedIndexCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents the collection containing the indexes to the selected items in a ListBox.
- C#
- VB.NET
public class SelectedIndexCollection : IList, ICollection, IEnumerable
Public Class SelectedIndexCollection
Inherits IList
Implements ICollection, IEnumerable
Properties
Count
Int32: Returns the number of selected items.
IsReadOnly
Boolean: Returns whether the collection is read-only.
Item(index)
Int32: Returns the index of the selected item.
Methods
Add(index)
Selects the item at the specified index.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 |
Clear()
Clears all the selected items.
Contains(index)
Checks if the specified index is in the selected items collection.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | The index of the item to check. |
Returns: Boolean.
CopyTo(destination, index)
| Parameter | Type | Description |
|---|---|---|
| destination | Array | |
| index | Int32 |
GetEnumerator()
Returns: IEnumerator.
IndexOf(index)
Finds the selected index in the collection.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 |
Returns: Int32.
Remove(index)
Unselects the specified index.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 |