UIAutomationType 枚举 (uiautomationcore.h)
包含用于指示 Microsoft UI 自动化数据类型的值。
语法
typedef enum UIAutomationType {
UIAutomationType_Int = 0x1,
UIAutomationType_Bool = 0x2,
UIAutomationType_String = 0x3,
UIAutomationType_Double = 0x4,
UIAutomationType_Point = 0x5,
UIAutomationType_Rect = 0x6,
UIAutomationType_Element = 0x7,
UIAutomationType_Array = 0x10000,
UIAutomationType_Out = 0x20000,
UIAutomationType_IntArray,
UIAutomationType_BoolArray,
UIAutomationType_StringArray,
UIAutomationType_DoubleArray,
UIAutomationType_PointArray,
UIAutomationType_RectArray,
UIAutomationType_ElementArray,
UIAutomationType_OutInt,
UIAutomationType_OutBool,
UIAutomationType_OutString,
UIAutomationType_OutDouble,
UIAutomationType_OutPoint,
UIAutomationType_OutRect,
UIAutomationType_OutElement,
UIAutomationType_OutIntArray,
UIAutomationType_OutBoolArray,
UIAutomationType_OutStringArray,
UIAutomationType_OutDoubleArray,
UIAutomationType_OutPointArray,
UIAutomationType_OutRectArray,
UIAutomationType_OutElementArray
} ;
常量
UIAutomationType_Int 值: 0x1 一个整数。 |
UIAutomationType_Bool 值: 0x2 一个布尔值。 |
UIAutomationType_String 值: 0x3 以 null 结尾的字符串。 |
UIAutomationType_Double 值: 0x4 一个双精度浮点数。 |
UIAutomationType_Point 值: 0x5 包含点的 x 坐标和 y 坐标的 POINT 结构。 |
UIAutomationType_Rect 值: 0x6 包含矩形左上角和右下角坐标的 RECT 结构。 自定义UI 自动化属性不支持此类型。 |
UIAutomationType_Element 值: 0x7 UI 自动化 元素的 IUIAutomationElement 接口的地址。 |
UIAutomationType_Array 值: 0x10000 未指定类型的数组。 |
UIAutomationType_Out 值: 0x20000 接收函数检索到的值的变量的地址。 |
UIAutomationType_IntArray 整数数组。 自定义UI 自动化属性不支持此类型。 |
UIAutomationType_BoolArray 一个布尔值数组。 自定义UI 自动化属性不支持此类型。 |
UIAutomationType_StringArray 以 null 结尾的字符串数组。 自定义UI 自动化属性不支持此类型。 |
UIAutomationType_DoubleArray 双精度浮点数数组。 自定义UI 自动化属性不支持此类型。 |
UIAutomationType_PointArray POINT 结构的数组,每个结构都包含点的 x 和 y 坐标。 自定义UI 自动化属性不支持此类型。 |
UIAutomationType_RectArray RECT 结构的数组,每个结构都包含矩形左上角和右下角的坐标。 自定义UI 自动化属性不支持此类型。 |
UIAutomationType_ElementArray 指向 IUIAutomationElement 接口的指针数组,每个指针对应UI 自动化元素。 |
UIAutomationType_OutInt 接收整数值的变量的地址。 |
UIAutomationType_OutBool 接收布尔值的变量的地址。 |
UIAutomationType_OutString 接收以 null 结尾的字符串的变量的地址。 |
UIAutomationType_OutDouble 接收双精度浮点数的变量的地址。 |
UIAutomationType_OutPoint 接收 POINT 结构的变量的地址。 |
UIAutomationType_OutRect 接收 RECT 结构的变量的地址。 |
UIAutomationType_OutElement 接收指向UI 自动化元素的 IUIAutomationElement 接口的指针的变量的地址。 |
UIAutomationType_OutIntArray 接收整数值数组的变量的地址。 |
UIAutomationType_OutBoolArray 接收布尔值数组的变量的地址。 |
UIAutomationType_OutStringArray 接收以 null 结尾的字符串数组的变量的地址。 |
UIAutomationType_OutDoubleArray 接收双精度浮点数数组的变量的地址。 |
UIAutomationType_OutPointArray 接收 POINT 结构数组的变量的地址。 |
UIAutomationType_OutRectArray 接收 RECT 结构数组的变量的地址。 |
UIAutomationType_OutElementArray 接收指向UI 自动化元素的 IUIAutomationElement 接口的指针数组的变量的地址。 |
要求
要求 | 值 |
---|---|
最低受支持的客户端 | Windows 7、带 Windows Vista SP2 的 Windows Vista 和适用于 Windows Vista 的平台更新、带 SP3 的 Windows XP 和适用于 Windows Vista 的平台更新 [桌面应用 |UWP 应用] |
最低受支持的服务器 | Windows Server 2008 R2、Windows Server 2008 SP2 和适用于 Windows Server 2008 的平台更新、带 SP2 的 Windows Server 2003 和适用于 Windows Server 2008 的平台更新 [桌面应用 |UWP 应用] |
标头 | uiautomationcore.h (包括 UIAutomation.h) |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈