ScrollViewerAutomationPeer.Scroll(ScrollAmount, ScrollAmount) 方法

定义

水平滚动、垂直滚动内容区域的可见区域或同时滚动两者。

public:
 virtual void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount) = Scroll;
void Scroll(ScrollAmount const& horizontalAmount, ScrollAmount const& verticalAmount);
public void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount);
function scroll(horizontalAmount, verticalAmount)
Public Sub Scroll (horizontalAmount As ScrollAmount, verticalAmount As ScrollAmount)

参数

horizontalAmount
ScrollAmount

特定于 控件的水平增量。 如果控件无法在此方向滚动,则传递 NoScroll

verticalAmount
ScrollAmount

特定于 控件的垂直增量。 如果控件无法在此方向滚动,则传递 NoScroll

实现

适用于