Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.
Assembly: UIAutomationProvider (in UIAutomationProvider.dll)
- Type: System.Double
The horizontal position as a percentage of the content area's total range. NoScroll should be passed in if the control cannot be scrolled in this direction.
A value that cannot be converted to a double is passed in.
A value greater than 100 or less than 0 is passed in (except -1, which is equivalent to NoScroll). The HorizontalScrollPercent and VerticalScrollPercent values are normalized to either 100 percent or 0 percent.
An attempt is made to scroll in an unsupported direction.
This method is only useful when the content area of the control is larger than the visible region.
Passing in the value NoScroll indicates that there is no scrolling in the specified direction.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.