Share via


UITestControlCollection.Insert Method

Inserts a UITestControl into the UITestControlCollection at the specified index.

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

Syntax

'Declaration
Public Sub Insert ( _
    index As Integer, _
    control As UITestControl _
)
public void Insert(
    int index,
    UITestControl control
)
public:
void Insert(
    int index, 
    UITestControl^ control
)
member Insert : 
        index:int * 
        control:UITestControl -> unit
public function Insert(
    index : int, 
    control : UITestControl
)

Parameters

  • index
    Type: Int32

    The zero-based index at which control should be inserted.

.NET Framework Security

See Also

Reference

UITestControlCollection Class

Microsoft.VisualStudio.TestTools.UITesting Namespace