IScrollProvider.Scroll Method (ScrollAmount, ScrollAmount)

 

Scrolls the visible region of the content area horizontally and vertically.

Namespace:   System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

void Scroll(
	ScrollAmount horizontalAmount,
	ScrollAmount verticalAmount
)

Parameters

horizontalAmount
Type: System.Windows.Automation.ScrollAmount

The horizontal increment specific to the control. NoScroll should be passed in if the control cannot be scrolled in this direction.

verticalAmount
Type: System.Windows.Automation.ScrollAmount

The vertical increment specific to the control. NoScroll should be passed in if the control cannot be scrolled in this direction.

Exception Condition
ArgumentException

If a control supports SmallIncrement values exclusively for horizontal or vertical scrolling but a LargeIncrement value is passed in.

InvalidOperationException

An attempt is made to scroll in an unsupported direction.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: