ITableProvider 介面

定義

公開方法與屬性,以支援控制項的使用者介面自動化用戶端存取,這些控制項的作用如同子項目集合的容器。Exposes methods and properties to support UI Automation client access to controls that act as containers for a collection of child elements. 此項目的子系必須實作 ITableItemProvider,並組織成可使用鍵盤周遊的二維邏輯座標系統 (也就是使用者介面自動化用戶端可以移至相鄰的控制項)。The children of this element must implement ITableItemProvider and be organized in a two-dimensional logical coordinate system that can be traversed (that is, a UI Automation client can move to adjacent controls) by using the keyboard.

public interface class ITableProvider : System::Windows::Automation::Provider::IGridProvider
public interface ITableProvider : System.Windows.Automation.Provider.IGridProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("9c860395-97b3-490a-b52a-858cc22af166")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ITableProvider : System.Windows.Automation.Provider.IGridProvider
type ITableProvider = interface
    interface IGridProvider
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("9c860395-97b3-490a-b52a-858cc22af166")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ITableProvider = interface
    interface IGridProvider
Public Interface ITableProvider
Implements IGridProvider
衍生
屬性
實作

備註

此控制項模式類似于差異在於, IGridProvider 任何控制項都 ITableProvider 必須同時為每個子專案公開資料行和/或資料列標頭關聯性。This control pattern is analogous to IGridProvider with the distinction that any control that implements ITableProvider must also expose a column and/or row header relationship for each child element.

執行的控制項 ITableProvider 也必須執行,才能 IGridProvider 公開資料表控制項的固有格線功能。Controls that implement ITableProvider are also required to implement IGridProvider so as to expose the inherent grid functionality of a table control.

在必須支援 TablePattern 和控制項模式的消費者介面自動化提供者上執行 GridPatternImplemented on a UI Automation provider that must support the TablePattern and GridPattern control patterns.

屬性

ColumnCount

取得方格中的資料行總數。Gets the total number of columns in a grid.

(繼承來源 IGridProvider)
RowCount

取得方格的資料列總數。Gets the total number of rows in a grid.

(繼承來源 IGridProvider)
RowOrColumnMajor

擷取表格的主要周遊方向。Retrieves the primary direction of traversal for the table.

方法

GetColumnHeaders()

取得使用者介面自動化提供者集合,該集合代表資料表中所有的資料行標頭。Gets a collection of UI Automation providers that represents all the column headers in a table.

GetItem(Int32, Int32)

擷取指定儲存格的使用者介面自動化提供者。Retrieves the UI Automation provider for the specified cell.

(繼承來源 IGridProvider)
GetRowHeaders()

擷取使用者介面自動化提供者集合,該集合表示資料表中所有的資料列標頭。Retrieves a collection of UI Automation providers that represents all row headers in the table.

適用於

另請參閱