Export (0) Print
Expand All

IUIAutomationValuePattern::CurrentValue property

Retrieves the value of the element.

This property is read-only.

Syntax


HRESULT get_CurrentValue(
  [out, retval]  BSTR *retVal
);

Property value

Type: BSTR*

A string representation of the value.

Remarks

Single-line edit controls support programmatic access to their contents through IUIAutomationValuePattern. However, multiline edit controls do not support this control pattern, and their contents must be retrieved by using IUIAutomationTextPattern.

This property does not support the retrieval of formatting information or substring values. IUIAutomationTextPattern must be used in these scenarios as well.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista, Windows XP with SP3 and Platform Update for Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008, Windows Server 2003 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]

Header

UIAutomationClient.h (include UIAutomation.h)

IDL

UIAutomationClient.idl

See also

IUIAutomationValuePattern

 

 

Community Additions

ADD
Show:
© 2014 Microsoft