Information
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.

Namespace:   Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public:
int IndexOf(
	UITestControl^ control
)

Return Value

Type: System::Int32

The zero-based index of the first occurrence of control in the complete UITestControlCollection, if found; otherwise, -1.

Return to top
Show: