ItemsSourceView.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.
Retrieves the index of the specified item.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
public:
virtual int IndexOf(Platform::Object ^ item) = IndexOf;
int IndexOf(IInspectable const& item);
public int IndexOf(object item);
Public Function IndexOf (item As Object) As Integer
Parameters
- item
-
Object
Platform::Object
IInspectable
The object to find in the collection.
Returns
Int32
int
The index of the item to find, if found.