IRangeValueProvider::SetValue method (uiautomationcore.h)

Sets the value of the control.

Syntax

HRESULT SetValue(
  [in] double val
);

Parameters

[in] val

Type: double

The value to set.

Return value

Type: HRESULT

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

Remarks

The actual value set depends on the control implementation. The control may round the requested value up or down.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header uiautomationcore.h (include UIAutomation.h)
DLL Uiautomationcore.dll

See also

IRangeValueProvider

UI Automation Providers Overview