共用方式為


HtmlTable 類別

表示網頁使用者介面 (UI) 測試的資料表控制項。

繼承階層架構

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlControl
      Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlTable

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

語法

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

HtmlTable 類型會公開下列成員。

建構函式

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

回頁首

屬性

  名稱 描述
公用屬性 AccessKey 取得此控制項的 AccessKey 屬性值。 (繼承自 HtmlControl)。
公用屬性 BoundingRectangle (繼承自 UITestControl)。
公用屬性 CellCount 取得此資料表中的儲存格數目。
公用屬性 Cells 取得此資料表中的儲存格集合。
公用屬性 Class 取得此控制項的類別屬性值。 (繼承自 HtmlControl)。
公用屬性 ClassName (繼承自 UITestControl)。
公用屬性 ColumnCount 取得此資料表中的資料行數目。
公用屬性 Container (繼承自 UITestControl)。
公用屬性 ControlDefinition 取得 HTML 頁面中控制項的定義。 (繼承自 HtmlControl)。
公用屬性 ControlType (繼承自 UITestControl)。
公用屬性 Enabled (繼承自 UITestControl)。
公用屬性 Exists (繼承自 UITestControl)。
公用屬性 FilterProperties (繼承自 UITestControl)。
公用屬性 FriendlyName (繼承自 UITestControl)。
公用屬性 HasFocus (繼承自 UITestControl)。
公用屬性 Height (繼承自 UITestControl)。
公用屬性 HelpText 取得此控制項的 HelpText 屬性值。 (繼承自 HtmlControl)。
公用屬性 Id 取得此控制項的 ID 屬性值。 (繼承自 HtmlControl)。
公用屬性 InnerText 取得此控制項的文字內容。 (繼承自 HtmlControl)。
公用屬性 IsTopParent (繼承自 UITestControl)。
公用屬性 Left (繼承自 UITestControl)。
公用屬性 Name (繼承自 UITestControl)。
公用屬性 NativeElement (繼承自 UITestControl)。
公用屬性 RowCount 取得此資料表中的資料列數目。
公用屬性 Rows 取得此資料表中的資料列集合。
公用屬性 SearchConfigurations (繼承自 UITestControl)。
公用屬性 SearchProperties (繼承自 UITestControl)。
受保護的屬性 SearchPropertiesSetExplicitly (繼承自 UITestControl)。
公用屬性 State (繼承自 UITestControl)。
公用屬性 TagInstance 在頁面上的控制項集合中取得具有相同標記名稱之控制項的索引。 (繼承自 HtmlControl)。
公用屬性 TagName 取得此控制項的標記名稱。 (繼承自 HtmlControl)。
公用屬性 TechnologyName (繼承自 UITestControl)。
公用屬性 Title 取得此控制項的標題屬性值。 (繼承自 HtmlControl)。
公用屬性 Top (繼承自 UITestControl)。
公用屬性 TopParent (繼承自 UITestControl)。
公用屬性 Type 取得此控制項的類型屬性值。 (繼承自 HtmlControl)。
公用屬性 ValueAttribute 取得此控制項的值屬性值。 (繼承自 HtmlControl)。
公用屬性 Width (繼承自 UITestControl)。
公用屬性 WindowHandle (繼承自 UITestControl)。
公用屬性 WindowTitles (繼承自 UITestControl)。

回頁首

方法

  名稱 描述
公用方法 CaptureImage (繼承自 UITestControl)。
公用方法 CopyFrom (繼承自 UITestControl)。
公用方法 DrawHighlight (繼承自 UITestControl)。
公用方法 EnsureClickable() (繼承自 UITestControl)。
公用方法 EnsureClickable(Point) (繼承自 UITestControl)。
公用方法 EnsureClickable(Point) (繼承自 UITestControl)。
公用方法 Equals (繼承自 UITestControl)。
受保護的方法 Finalize 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。
公用方法 Find (繼承自 UITestControl)。
公用方法 FindFirstCellWithValue 尋找具有特定值的第一個儲存格。
公用方法 FindMatchingControls (繼承自 UITestControl)。
公用方法 GetCell 取得儲存格以列和資料行索引。 傳回的物件可以是 HtmlCell 或 HtmlHeaderCell。
公用方法 GetChildren (繼承自 UITestControl)。
公用方法 GetClickablePoint (繼承自 UITestControl)。
公用方法 GetColumnNames 取得資料表的所有資料行的名稱。
公用方法 GetContent 取得中所有儲存格的值資料表的內容。
公用方法 GetHashCode (繼承自 UITestControl)。
公用方法 GetParent (繼承自 UITestControl)。
公用方法 GetProperty (繼承自 UITestControl)。
公用方法 GetRow 取得資料列會根據資料列索引。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
受保護的方法 GetUITestControlsForSearch (繼承自 UITestControl)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
公用方法 SetFocus (繼承自 UITestControl)。
公用方法 SetProperty (繼承自 UITestControl)。
公用方法 ToString (繼承自 UITestControl)。
公用方法 TryFind (繼承自 UITestControl)。
公用方法 TryGetClickablePoint(Point%) (繼承自 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.HtmlControls 命名空間

HtmlTable.PropertyNames

HtmlControl