ScrollViewerAutomationPeer.SetScrollPercent method

Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.

Syntax


public void SetScrollPercent(
  double horizontalPercent, 
  double verticalPercent
)

Parameters

horizontalPercent

Type: System.Double [.NET] | float64 [C++]

The horizontal position as a percentage of the content area's total range. Pass NoScroll if the control cannot be scrolled in this direction.

verticalPercent

Type: System.Double [.NET] | float64 [C++]

The vertical position as a percentage of the content area's total range. Pass NoScroll if the control cannot be scrolled in this direction.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Automation.Peers
Windows::UI::Xaml::Automation::Peers [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Automation.Peers
Windows::UI::Xaml::Automation::Peers [C++]

Metadata

Windows.winmd

See also

ScrollViewerAutomationPeer

 

 

Show:
© 2015 Microsoft