IXRScrollbar::GetViewportSize (Windows Embedded CE 6.0)
1/6/2010
This method retrieves the amount of scrollable content is currently visible.
Syntax
virtual HRESULT STDMETHODCALLTYPE GetViewportSize(
float *pValue
) = 0;
Parameters
- pValue
Pointer to a float value that indicates the amount of scrollable content is currently visible.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
The units that are used for pValue are the same units that are used to describe the length of the content. Some examples include lines of text, or pages of text.
The value in pValue is used to calculate the size of the IXRThumb control that is displayed as the sliding value indicator in an IXRScrollBar control. The IXRThumb control has a minimum size that is defined by the operating system. The size of an IXRThumb control becomes larger as more content is visible. For example, if 25 percent of a thumb control's content is visible, the control occupies 25 percent of the track in which it moves.
.NET Framework Equivalent
System.Windows.Controls.Primitives.ScrollBar.ViewportSize
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |