Udostępnij za pośrednictwem


Właściwość UITestControlCollection.Item —

Zwraca lub ustawia UITestControlCollection pod określonym indeksem.

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.UITesting
Zestaw:  Microsoft.VisualStudio.TestTools.UITesting (w Microsoft.VisualStudio.TestTools.UITesting.dll)

Składnia

'Deklaracja
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 : 
        index:int -> UITestControl with get, set
Język JScript nie obsługuje właściwości indeksowanych.

Parametry

  • index
    Typ: System.Int32
    Wyświetlanego elementu get lub set.

Wartość właściwości

Typ: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
UITestControlCollection w danym indeksie.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

UITestControlCollection Klasa

Przestrzeń nazw Microsoft.VisualStudio.TestTools.UITesting