IUIAutomationLegacyIAccessiblePattern::SetValue 方法 (uiautomationclient.h)
设置 元素的 Microsoft Active Accessibility 值属性。
语法
HRESULT SetValue(
LPCWSTR szValue
);
参数
szValue
类型: LPCWSTR
包含对象的值的本地化字符串。
返回值
类型: HRESULT
如果该方法成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。
注解
此方法仅支持某些元素 (通常编辑控件) 。
要求
要求 | 值 |
---|---|
最低受支持的客户端 | Windows 7 [仅限桌面应用] |
最低受支持的服务器 | Windows Server 2008 [仅限桌面应用] |
目标平台 | Windows |
标头 | uiautomationclient.h (包括 UIAutomation.h) |