Share via


UITestControlCollection.Item Property

Gets or sets the UITestControlCollection at a given index.

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

Syntax

'Declaration
Public Default Property Item ( _
    index As Integer _
) As UITestControl
public UITestControl this[
    int index
] { get; set; }
public:
property UITestControl^ default[int index] {
    UITestControl^ get (int index);
    void set (int index, UITestControl^ value);
}
member Item : UITestControl with get, set
JScript does not support indexed properties.

Parameters

  • index
    Type: System.Int32
    The zero-based index of the element to get or set.

Property Value

Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
The UITestControlCollection at the given index.

.NET Framework Security

See Also

Reference

UITestControlCollection Class

Microsoft.VisualStudio.TestTools.UITesting Namespace