IGridProvider 接口

定义

公开一些方法和属性,UI 自动化客户端可通过这些方法和属性访问充当某个子元素集合的容器的控件。Exposes methods and properties to support UI Automation client access to controls that act as containers for a collection of child elements. 此元素的子级必须实现 IGridItemProvider,而且必须使用键盘在可以进行遍历的一个二维逻辑坐标系统中组织(即,UI 自动化客户端可以移动到相邻控件)。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
Public Interface IGridProvider
派生
属性

注解

在必须支持GridPattern控件模式的 UI 自动化提供程序上实现。Implemented 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)

检索指定单元格的 UI 自动化提供程序。Retrieves the UI Automation provider for the specified cell.

适用于

另请参阅