共用方式為


WinRow 類別

表示用以測試 Windows Form 使用者介面 (UI) 的資料表資料列控制項。

繼承階層架構

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinControl
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinRow

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

語法

'宣告
<CLSCompliantAttribute(True)> _
Public Class WinRow _
    Inherits WinControl
[CLSCompliantAttribute(true)]
public class WinRow : WinControl
[CLSCompliantAttribute(true)]
public ref class WinRow : public WinControl
[<CLSCompliantAttribute(true)>]
type WinRow =  
    class 
        inherit WinControl 
    end
public class WinRow extends WinControl

WinRow 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 WinRow() 初始化 WinRow 類別的新執行個體。
公用方法 WinRow(UITestControl) 初始化 WinRow 類別的新執行個體。

回頁首

屬性

  名稱 描述
公用屬性 AccessibleDescription 取得這 WinControl 基礎 IAccessible 的描述。 (繼承自 WinControl)。
公用屬性 AccessKey 取得指派給此控制項的便捷鍵。 (繼承自 WinControl)。
公用屬性 BoundingRectangle (繼承自 UITestControl)。
公用屬性 Cells 取得此資料表資料列中的儲存格集合。
公用屬性 ClassName (繼承自 UITestControl)。
公用屬性 Container (繼承自 UITestControl)。
公用屬性 ControlId 取得指派給這個控制項的 ID。 (繼承自 WinControl)。
公用屬性 ControlName 取得此控制項的名稱。 (繼承自 WinControl)。
公用屬性 ControlType (繼承自 UITestControl)。
公用屬性 Enabled (繼承自 UITestControl)。
公用屬性 Exists (繼承自 UITestControl)。
公用屬性 FilterProperties (繼承自 UITestControl)。
公用屬性 FriendlyName (繼承自 UITestControl)。
公用屬性 HasFocus (繼承自 UITestControl)。
公用屬性 Height (繼承自 UITestControl)。
公用屬性 HelpText 取得指派給此控制項的說明文字。 (繼承自 WinControl)。
公用屬性 IsTopParent (繼承自 UITestControl)。
公用屬性 Left (繼承自 UITestControl)。
公用屬性 Name (繼承自 UITestControl)。
公用屬性 NativeElement (繼承自 UITestControl)。
公用屬性 RowIndex 取得資料表中此資料列的索引。
公用屬性 SearchConfigurations (繼承自 UITestControl)。
公用屬性 SearchProperties (繼承自 UITestControl)。
受保護的屬性 SearchPropertiesSetExplicitly (繼承自 UITestControl)。
公用屬性 Selected 取得值,表示是否已選取此資料表資料列。
公用屬性 State (繼承自 UITestControl)。
公用屬性 TechnologyName (繼承自 UITestControl)。
公用屬性 ToolTipText (繼承自 WinControl)。
公用屬性 Top (繼承自 UITestControl)。
公用屬性 TopParent (繼承自 UITestControl)。
公用屬性 Value 取得此資料表資料列中的值。
公用屬性 Width (繼承自 UITestControl)。
公用屬性 WindowHandle (繼承自 UITestControl)。
公用屬性 WindowTitles (繼承自 UITestControl)。

回頁首

方法

  名稱 描述
公用方法 CaptureImage (繼承自 UITestControl)。
公用方法 CopyFrom (繼承自 UITestControl)。
公用方法 DrawHighlight (繼承自 UITestControl)。
公用方法 EnsureClickable() (繼承自 UITestControl)。
公用方法 EnsureClickable(Point) (繼承自 UITestControl)。
公用方法 Equals (繼承自 UITestControl)。
受保護的方法 Finalize 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。
公用方法 Find (繼承自 UITestControl)。
公用方法 FindMatchingControls (繼承自 UITestControl)。
公用方法 GetCell 取得儲存格根據儲存格的索引。
公用方法 GetChildren (繼承自 UITestControl)。
公用方法 GetClickablePoint (繼承自 UITestControl)。
公用方法 GetContent 取得中所有儲存格的值資料行的內容。
公用方法 GetHashCode (繼承自 UITestControl)。
公用方法 GetParent (繼承自 UITestControl)。
公用方法 GetProperty (繼承自 UITestControl)。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
受保護的方法 GetUITestControlsForSearch 取得此資料表資料列中的子控制項陣列,供測試架構內部用於搜尋。 (覆寫 WinControl.GetUITestControlsForSearch()。)
受保護的方法 GetValidSearchProperties 傳回有效的搜尋屬性清單的 Helper 函式 (覆寫 WinControl.GetValidSearchProperties()。)
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
公用方法 SetFocus (繼承自 UITestControl)。
公用方法 SetProperty (繼承自 UITestControl)。
公用方法 ToString (繼承自 UITestControl)。
公用方法 TryFind (繼承自 UITestControl)。
公用方法 TryGetClickablePoint(Point%) (繼承自 UITestControl)。
公用方法 WaitForControlCondition(Predicate<UITestControl>) (繼承自 UITestControl)。
公用方法 WaitForControlCondition(Predicate<UITestControl>, Int32) (繼承自 UITestControl)。
公用方法 WaitForControlEnabled() (繼承自 UITestControl)。
公用方法 WaitForControlEnabled(Int32) (繼承自 UITestControl)。
公用方法 WaitForControlExist() (繼承自 UITestControl)。
公用方法 WaitForControlExist(Int32) (繼承自 UITestControl)。
公用方法 WaitForControlNotExist() (繼承自 UITestControl)。
公用方法 WaitForControlNotExist(Int32) (繼承自 UITestControl)。
公用方法 WaitForControlPropertyEqual(String, Object) (繼承自 UITestControl)。
公用方法 WaitForControlPropertyEqual(String, Object, Int32) (繼承自 UITestControl)。
公用方法 WaitForControlPropertyNotEqual(String, Object) (繼承自 UITestControl)。
公用方法 WaitForControlPropertyNotEqual(String, Object, Int32) (繼承自 UITestControl)。
公用方法 WaitForControlReady() (繼承自 UITestControl)。
公用方法 WaitForControlReady(Int32) (繼承自 UITestControl)。

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.TestTools.UITesting.WinControls 命名空間

WinRow.PropertyNames

WinControl