Partager via


IXRScrollViewer::GetHorizontalOffset (Compact 2013)

3/28/2014

This method retrieves a value that contains the horizontal offset of the scrolled content in this scroll viewer.

Syntax

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

Parameters

  • pValue
    [out] Pointer to a float value that indicates the horizontal offset, in pixels, of the scrolled content.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

A positive pValue value corresponds to the content being offset to the left.

Valid values for pValue are between 0 (zero) and n, where n is the result of the value retrieved by IXRScrollViewer::GetExtentWidth minus the value retrieved by IXRScrollViewer::GetViewportWidth.

.NET Framework Equivalent

System.Windows.Controls.ScrollViewer.HorizontalOffset

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRScrollViewer
IXRScrollViewer::ScrollToHorizontalOffset