SetValue method

IUIAutomationLegacyIAccessiblePattern::SetValue method

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

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

UIAutomationClient.h (include UIAutomation.h)

IDL

UIAutomationClient.idl

See also

IUIAutomationLegacyIAccessiblePattern

 

 

Community Additions

ADD
Show:
© 2016 Microsoft