语言

IGridProvider 接口

定义

公开方法和属性以支持UI 自动化客户端对充当子元素集合容器的控件的访问。 此元素的子元素必须实现 IGridItemProvider,并组织在一个二维逻辑坐标系中,该系统可以遍历(即UI 自动化客户端可以使用键盘移动到相邻控件)。

public interface class 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
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)>]
type IGridProvider = interface
type IGridProvider = interface
Public Interface IGridProvider
派生
属性

注解

在必须支持 GridPattern 控件模式的UI 自动化提供程序上实现。

IGridProvider 不启用网格的主动操作;必须实现 ITransformProvider 才能启用此功能。

属性

名称 说明
ColumnCount

获取网格中的列总数。

RowCount

获取网格中的行总数。

方法

名称 说明
GetItem(Int32, Int32)

检索指定单元格的 UI 自动化提供程序。

适用于

另请参阅