共用方式為


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

實作

適用於