iGridProvider::get_ColumnCount 方法 (uiautomationcore.h)

指定网格中的列总数。

此属性为只读。

语法

HRESULT get_ColumnCount(
  int *pRetVal
);

参数

pRetVal

返回值

备注

隐藏的行和列(具体取决于提供程序实现)可能会加载到逻辑树中,因此将反映在 IGridProvider::RowCountIGridProvider::ColumnCount 属性中。 如果尚未加载隐藏的行和列,则不会将其计入计数。

要求

要求
最低受支持的客户端 Windows XP [桌面应用 | UWP 应用]
最低受支持的服务器 Windows Server 2003 [桌面应用 | UWP 应用]
目标平台 Windows
标头 uiautomationcore.h (包括 UIAutomation.h)
DLL Uiautomationcore.dll

另请参阅

IGridProvider

UI 自动化提供程序概述