Share via


IXRScrollViewer::GetVerticalOffset (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

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

Parameters

  • pValue
    Pointer to a float value that indicates the vertical 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 top.

Valid values for pValue are between zero and n, where n is the result of the value retrieved by IXRScrollViewer::GetExtentHeight minus the value retrieved by IXRScrollViewer::GetViewportHeight.

.NET Framework Equivalent

System.Windows.Controls.ScrollViewer.VerticalOffset

Requirements

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

See Also

Reference

IXRScrollViewer
IXRScrollViewer::ScrollToVerticalOffset