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

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

See Also

Reference

UITechnologyElement Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

ScrollDirection

ScrollAmount

InitializeProgrammaticScroll