Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Public MustOverride Function GetScrolledPercentage ( _
scrollDirection As ScrollDirection, _
scrollElement As IUITechnologyElement _
) As Integer
public abstract int GetScrolledPercentage(
ScrollDirection scrollDirection,
IUITechnologyElement scrollElement
)
public:
virtual int GetScrolledPercentage(
ScrollDirection scrollDirection,
IUITechnologyElement^ scrollElement
) abstract
abstract GetScrolledPercentage :
scrollDirection:ScrollDirection *
scrollElement:IUITechnologyElement -> int
public abstract function GetScrolledPercentage(
scrollDirection : ScrollDirection,
scrollElement : IUITechnologyElement
) : int
Parameters
- scrollDirection
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.ScrollDirection
A member of the ScrollDirection enumeration.
- scrollElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
A horizontal or vertical scroll bar.
Return Value
Type: System.Int32
The percentage of the length of the provided scrollElement.
Implements
IUITechnologyElement.GetScrolledPercentage(ScrollDirection, IUITechnologyElement)
.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.