Share via


IUITechnologyElement.GetScrolledPercentage Method

Definition

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

public:
 int GetScrolledPercentage(Microsoft::VisualStudio::TestTools::UITest::Extension::ScrollDirection scrollDirection, Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ scrollElement);
public int GetScrolledPercentage (Microsoft.VisualStudio.TestTools.UITest.Extension.ScrollDirection scrollDirection, Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement scrollElement);
abstract member GetScrolledPercentage : Microsoft.VisualStudio.TestTools.UITest.Extension.ScrollDirection * Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement -> int
Public Function GetScrolledPercentage (scrollDirection As ScrollDirection, scrollElement As IUITechnologyElement) As Integer

Parameters

scrollDirection
ScrollDirection

A member of the ScrollDirection enumeration.

scrollElement
IUITechnologyElement

A horizontal or vertical scroll bar.

Returns

The percentage of the length of the provided scrollElement.

Applies to