次の方法で共有


IXRScrollBar::SetViewportSize (Windows Embedded CE 6.0)

1/6/2010

This method sets how much of the scrollable content is currently visible.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetViewportSize(
    float Value
) = 0;

Parameters

  • Value
    A float value that indicates how much of the scrollable content will be visible.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The units that are used for Value 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 Value 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

See Also

Reference

IXRScrollBar
IXRScrollbar::GetViewportSize