Compartilhar via


IXRScrollViewer::GetViewportHeight (Compact 2013)

3/28/2014

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

Syntax

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

Parameters

  • pValue
    [out] Pointer to a float value that indicates the vertical size, in pixels, of the viewable content.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The extent is the area that includes all the content of this scroll viewer. The visible area of the content is the viewport. You cannot set the viewport height directly. You can set it indirectly by calling the inherited method IXRFrameworkElement::SetHeight.

.NET Framework Equivalent

System.Windows.Controls.ScrollViewer.ViewportHeight

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRScrollViewer
IXRScrollViewer::GetExtentHeight