IUITechnologyElement.GetScrolledPercentage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.