IGridItemProvider 接口

定义

公开一些方法和属性,UI 自动化客户端可通过这些方法和属性访问实现 IGridProvider 的容器的各个子控件。Exposes methods and properties to support UI Automation client access to individual child controls of containers that implement IGridProvider.

public interface class IGridItemProvider
public interface IGridItemProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("d02541f1-fb81-4d64-ae32-f520f8a6dbd1")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IGridItemProvider
type IGridItemProvider = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("d02541f1-fb81-4d64-ae32-f520f8a6dbd1")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IGridItemProvider = interface
Public Interface IGridItemProvider
派生
属性

注解

通常,可以使用键盘遍历实现 IGridItemProvider 的控件(即 UI 自动化客户端可以移动到相邻的控件)。Controls that implement IGridItemProvider can typically be traversed (that is, a UI Automation client can move to adjacent controls) by using the keyboard.

在必须支持控件模式的 UI 自动化提供程序上实现 GridItemPatternImplemented on a UI Automation provider that must support the GridItemPattern control pattern.

属性

Column

获取包含单元格或项的列的序号。Gets the ordinal number of the column that contains the cell or item.

ColumnSpan

获取单元格或项跨的列数。Gets the number of columns spanned by a cell or item.

ContainingGrid

获取一个 UI 自动化提供程序,该提供程序可实现 IGridProvider 并表示单元或项的容器。Gets a UI Automation provider that implements IGridProvider and represents the container of the cell or item.

Row

获取包含单元格或项的行的序号。Gets the ordinal number of the row that contains the cell or item.

RowSpan

获取某个单元格或项跨的行数。Gets the number of rows spanned by a cell or item.

适用于

另请参阅