The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
UITestControlCollection::IndexOf Method (UITestControl^)
Searches for the specified Object and returns the zero-based index of the first occurrence of the specified UITestControl in the complete UITestControlCollection.
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Parameters
- control
-
Type:
Microsoft.VisualStudio.TestTools.UITesting::UITestControl^
The UITestControl to locate in the UITestControlCollection.
Return Value
Type: System::Int32The zero-based index of the first occurrence of control in the complete UITestControlCollection, if found; otherwise, -1.
Show: