ListView.SelectedIndexCollection.Remove(Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the item at the specified index in the Items collection from the ListView.SelectedIndexCollection.
public:
void Remove(int itemIndex);
public void Remove (int itemIndex);
member this.Remove : int -> unit
Public Sub Remove (itemIndex As Integer)
- itemIndex
- Int32
The index of the item in the Items collection to remove from the ListView.SelectedIndexCollection.
The specified index is less than 0 or greater than or equal to the number of items in the owner ListView.
-or-
The owner ListView is in virtual mode, and the specified index is less than 0 or greater than or equal to the value of VirtualListSize.
If the ListView is in virtual mode and the handle for the owner ListView has not been created (you can check this using the Control.IsHandleCreated property), calling the Remove method will have no effect on the ListView.SelectedIndexCollection.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: