IXRRangeBase::SetValue (Windows Embedded CE 6.0)
1/6/2010
This method sets the current setting of this IXRRangeBase control, which might be coerced.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetValue(
float Value
) = 0;
Parameters
- Value
[in] A float value that indicates the current setting of this IXRRangeBase control, which might be coerced.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
The IXRRangeBase control typically indicates its Value visually in some way when it is rendered on-screen. For example, the inheriting IXRSlider control has a thumb that is synchronized with the Value of the control.
The Value of an IXRRangeBase might be coerced. This means that if you call IXRRangeBase::SetValue to set the current value to a number that is less than the Minimum value, Value will internally be set to the Minimum value. If you set Value to a number that is greater than the Maximum value, Value is internally set to the Maximum value. For more information, see IXRRangeBase::SetMinimum and IXRRangeBase::SetMaximum.
When the value of the Value parameter differs from the current Value, the ValueChanged event is raised.
.NET Framework Equivalent
System.Windows.Controls.Primitives.RangeBase.Value
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |