Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITechnologyElement::GetScrolledPercentage Method (ScrollDirection, IUITechnologyElement^)

 

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)

public:
virtual int GetScrolledPercentage(
	ScrollDirection scrollDirection,
	IUITechnologyElement^ scrollElement
) abstract

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.

Return to top
Show: