IUIAutomationLegacyIAccessiblePattern::SetValue method (uiautomationclient.h)

Sets the Microsoft Active Accessibility value property for the element.

Syntax

HRESULT SetValue(
  LPCWSTR szValue
);

Parameters

szValue

Type: LPCWSTR

A localized string that contains the object's value.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method is supported only for some elements (usually edit controls).

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)

See also

IUIAutomationLegacyIAccessiblePattern