This documentation is archived and is not being maintained.

UITechnologyElement.ScrollProgrammatically Method

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 abstract void ScrollProgrammatically(
	ScrollDirection scrollDirection,
	ScrollAmount scrollAmount
)

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.

Implements

IUITechnologyElement.ScrollProgrammatically(ScrollDirection, ScrollAmount)

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.

Show: