ListView.SelectedIndexCollection.IList.IndexOf(Object) Method
Definition
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.
Returns the index in the ListView.SelectedIndexCollection. The ListView.SelectedIndexCollection contains the indexes of selected items in the ListView.ListViewItemCollection of the ListView control.
This API supports the product infrastructure and is not intended to be used directly from your code.
virtual int System.Collections.IList.IndexOf(System::Object ^ selectedIndex) = System::Collections::IList::IndexOf;
int IList.IndexOf (object selectedIndex);
int IList.IndexOf (object? selectedIndex);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (selectedIndex As Object) As Integer Implements IList.IndexOf
Parameters
- selectedIndex
- Object
The zero-based index from the ListView.ListViewItemCollection to locate in the collection.
Returns
The index of value
if found in the list; otherwise, -1.
Implements
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om