IValueProvider::Value property

The value of the control.

This property is read-only.

Syntax


HRESULT get_Value(
  [out, retval]  BSTR *pRetVal
);

Property value

Type: BSTR*

Receives the value as a string. This parameter is passed uninitialized.

Remarks

Single-line edit controls support programmatic access to their contents by implementing IValueProvider (in addition to ITextProvider). However, multi-line edit controls do not implement IValueProvider.

To retrieve the textual contents of multi-line edit controls, the controls must implement ITextProvider. However, ITextProvider does not support setting the value of a control.

IValueProvider does not support the retrieval of formatting information or substring values. Implement ITextProvider in these scenarios.

Requirements

Minimum supported client

Windows XP [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2003 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

See also

IValueProvider
UI Automation Providers Overview

 

 

Community Additions

ADD
Show:
© 2014 Microsoft