Share via


IXRScrollViewer::ScrollToHorizontalOffset (Windows Embedded CE 6.0)

1/6/2010

This method scrolls the content that is within the scroll viewer to the specified horizontal offset position.

Syntax

virtual HRESULT STDMETHODCALLTYPE ScrollToHorizontalOffset(
    float Offset
) = 0;

Parameters

  • Offset
    [in] A float value that indicates the position, in pixels, that the content scrolls to.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

To scroll to an offset that is relative to the length of the horizontal extent, you can calculate the Offset value by performing a calculation on the value retrieved by IXRScrollViewer::GetExtentWidth. For example, the extent width divided by 2 provides an offset that is exactly in the middle of the horizontal extent.

.NET Framework Equivalent

System.Windows.Controls.ScrollViewer.ScrollToHorizontalOffset

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRScrollViewer
IXRScrollViewer::GetHorizontalOffset