IUIAutomationValuePattern::SetValue Method
Sets the value of the element.
Syntax
HRESULT SetValue( BSTR val );
Parameters
- val
[in] The value to set.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The IUIAutomationElement::CurrentIsEnabled property must be TRUE, and the IUIAutomationValuePattern::CurrentIsReadOnly property must be FALSE.