Wisej.Web.ListView SelectedListViewItemCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents the collection that contains the selected items in a ListView control.
Initializes a new instance of the SelectedListViewItemCollection class.
Name | Type | Description |
---|---|---|
Int32: Returns the number of items in the collection.
Boolean: Returns whether the collection is read-only.
ListViewItem: Returns the item value at the specified index within the collection.
Throws:
ArgumentOutOfRangeException The index parameter is less than 0 or greater than or equal to the value of the Count property of SelectedListViewItemCollection.
ListViewItem: Returns the item with the specified key within the collection.
Adds the specified item in the Items collection to the SelectedItems collection.
Returns: Int32. The new count of selected items.
Throws:
ArgumentNullException item is null.
ArgumentException item doesn't belongs to a different ListView.
Clears the selection.
Determines whether the specified item is located in the collection.
Returns: Boolean. true if the specified index from the ListViewItemCollection for the ListView is an item in the collection; otherwise, false.
Determines if an item with the specified key is contained in the collection.
Returns: Boolean. true if an item with the specified key is contained in the collection; otherwise, false.
Returns an enumerator that can be used to iterate through the checked index collection.
Returns: IEnumerator<ListViewItem>. An IEnumerator that represents the checked index collection.
Returns the index within the SelectedListViewItemCollection of the specified item.
Returns: Int32. The zero-based index in the collection; otherwise, -1 if the item is not located in the collection.
Determines the index of an item with the specified key.
Returns: Int32. The zero-based index for the ListViewItem with the specified name, if found; otherwise, -1.
Removes the item in the Items collection from the SelectedItems collection.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
item
The item in the Items collection to add to the SelectedItems collection.
item
The ListViewItem to locate in the collection.
key
The name of the item to search for.
item
The ListViewItem to locate in the collection.
key
The name of the item to retrieve the index for.
item
The item in the Items collection to remove from the SelectedItems collection.
owner
A ListView control that owns the collection.