IUITechnologyElement.GetScrolledPercentage Method

Returns the amount that is scrolled as a percentage of the size of the scrollbar.

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

Syntax

'Declaration
Function GetScrolledPercentage ( _
    scrollDirection As ScrollDirection, _
    scrollElement As IUITechnologyElement _
) As Integer
int GetScrolledPercentage(
    ScrollDirection scrollDirection,
    IUITechnologyElement scrollElement
)
int GetScrolledPercentage(
    ScrollDirection scrollDirection, 
    IUITechnologyElement^ scrollElement
)
abstract GetScrolledPercentage : 
        scrollDirection:ScrollDirection * 
        scrollElement:IUITechnologyElement -> int 
function GetScrolledPercentage(
    scrollDirection : ScrollDirection, 
    scrollElement : IUITechnologyElement
) : int

Parameters

Return Value

Type: System.Int32
The percentage of the length of the provided scrollElement.

.NET Framework Security

See Also

Reference

IUITechnologyElement Interface

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

ScrollDirection