Box. Selected Index Collection. IList. Contains(Object) Method
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.
For a description of this member, see Contains(Object).
virtual bool System.Collections.IList.Contains(System::Object ^ selectedIndex) = System::Collections::IList::Contains;
bool IList.Contains (object selectedIndex);
bool IList.Contains (object? selectedIndex);
abstract member System.Collections.IList.Contains : obj -> bool override this.System.Collections.IList.Contains : obj -> bool
Function Contains (selectedIndex As Object) As Boolean Implements IList.Contains
The index to locate in the collection.
The IList.Contains method enables you to determine whether an index position from the ListBox.ObjectCollection a member of the selected indexes stored in the ListBox.SelectedIndexCollection. You can use this method to determine whether a specific item in a multiple-selection list box is selected.