Compartilhar via


IXRRangeBase::GetValue (Compact 2013)

3/28/2014

This method retrieves the current setting of this IXRRangeBase control, which might be coerced.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetValue(
    float *pValue
) = 0;

Parameters

  • pValue
    [out] Pointer to 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.

.NET Framework Equivalent

System.Windows.Controls.Primitives.RangeBase.Value

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRRangeBase
IXRRangeBase::SetValue