GetHorizontalScrollPercent Method

PanoramaAutomationPeer.GetHorizontalScrollPercent Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Retrieves the current horizontal scroll position, expressed as a percentage of the total content area within the control.

Namespace:  Microsoft.Phone.Automation.Peers
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

'Declaration
Public Function GetHorizontalScrollPercent ( _
	viewportWidth As Integer, _
	itemsWidth As Integer, _
	offset As Integer _
) As Double

Parameters

viewportWidth
Type: System.Int32
Width of the viewport area.
itemsWidth
Type: System.Int32
Width of items.
offset
Type: System.Int32
Offset in the viewport.

Return Value

Type: System.Double
Returns Double.

Windows Phone OS

Supported in: 8.1

Show:
© 2017 Microsoft