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)
Syntax
'Declaration
Public MustOverride Sub ScrollProgrammatically ( _
scrollDirection As ScrollDirection, _
scrollAmount As ScrollAmount _
)
public abstract void ScrollProgrammatically(
ScrollDirection scrollDirection,
ScrollAmount scrollAmount
)
public:
virtual void ScrollProgrammatically(
ScrollDirection scrollDirection,
ScrollAmount scrollAmount
) abstract
abstract ScrollProgrammatically :
scrollDirection:ScrollDirection *
scrollAmount:ScrollAmount -> unit
public abstract function 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)
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.