IGridProvider 介面

定義

公開方法與屬性,以支援控制項的使用者介面自動化用戶端存取,這些控制項的作用如同子項目集合的容器。Exposes methods and properties to support UI Automation client access to controls that act as containers for a collection of child elements. 此項目的子系必須實作 IGridItemProvider,並組織成可使用鍵盤周遊的二維邏輯座標系統 (也就是使用者介面自動化用戶端可以移至相鄰的控制項)。The children of this element must implement IGridItemProvider 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 IGridProvider
public interface IGridProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("b17d6187-0907-464b-a168-0ef17a1572b1")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IGridProvider
type IGridProvider = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("b17d6187-0907-464b-a168-0ef17a1572b1")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IGridProvider = interface
Public Interface IGridProvider
衍生
屬性

備註

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

IGridProvider 不會啟用方格的使用中操作,而必須實作 ITransformProvider 才能啟用此功能。IGridProvider does not enable active manipulation of a grid; ITransformProvider must be implemented to enable this functionality.

屬性

ColumnCount

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

RowCount

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

方法

GetItem(Int32, Int32)

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

適用於

另請參閱