IndexOf()
List::IndexOf(const T&) const method
Gets first index of specific item.
int System::Collections::Generic::List<T>::IndexOf(const T &item) const override
Arguments
Parameter | Type | Description |
---|---|---|
item | const T& | Item to look for. |
Return Value
Index of first occurance of specified item or -1 if not found.
List::IndexOf(const T&, int) const method
Looks for specific item in list.
int System::Collections::Generic::List<T>::IndexOf(const T &item, int index) const
Arguments
Parameter | Type | Description |
---|---|---|
item | const T& | Item to look for. |
index | int | Index to start lookup at. |
Return Value
Index of first instance of specified item or -1 if not found.
See Also
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Slides