Click or drag to resize
RadVirtualGridAutomationPeerSetScrollPercent Method
Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.

Namespace: Telerik.Windows.Automation.Peers
Assembly: Telerik.Windows.Controls.VirtualGrid (in Telerik.Windows.Controls.VirtualGrid.dll) Version: 2017.3.1018.40 (2017.3.1018.40)
Syntax
public void SetScrollPercent(
	double horizontalPercent,
	double verticalPercent
)

Parameters

horizontalPercent
Type: SystemDouble
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.
verticalPercent
Type: SystemDouble
The vertical 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.

Implements

IScrollProviderSetScrollPercent(Double, Double)
Exceptions
ExceptionCondition
ArgumentExceptionA value that cannot be converted to a double is passed in.
ArgumentOutOfRangeExceptionA 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.
InvalidOperationExceptionAn attempt is made to scroll in an unsupported direction.
See Also