UITestControlCollection.Item 屬性

取得或設定位於指定之索引位置的 UITestControlCollection

命名空間:  Microsoft.VisualStudio.TestTools.UITesting
組件:  Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

語法

'宣告
Public Default Property Item ( _
    index As Integer _
) As UITestControl
    Get
    Set
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 不支援索引屬性。

參數

  • index
    型別:System.Int32
    要取得或設定之以零起始的項目索引。

屬性值

型別:Microsoft.VisualStudio.TestTools.UITesting.UITestControl
指定索引處的 UITestControlCollection

.NET Framework 安全性

請參閱

參考

UITestControlCollection 類別

Microsoft.VisualStudio.TestTools.UITesting 命名空間