Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITechnologyElement::ScrollProgrammatically Method (ScrollDirection, ScrollAmount)

 

Programmatically scrolls this element by using the provided direction and an indication of the amount.

Namespace:   Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

public:
virtual void ScrollProgrammatically(
	ScrollDirection scrollDirection,
	ScrollAmount scrollAmount
) abstract

Parameters

scrollDirection
Type: Microsoft.VisualStudio.TestTools.UITest.Extension::ScrollDirection

A member of the ScrollDirection enumeration.

scrollAmount
Type: Microsoft.VisualStudio.TestTools.UITest.Extension::ScrollAmount

A member of the ScrollAmount enumeration.

Scrollbars typically have a large value and a small value. Depending on the size of the scrollbar, making a specific control visible might require movements by four large forward scroll amounts and one small backward scroll amount.

Return to top
Show: