ScrollProviderWrapperSetScrollPercent - метод

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

Definition

Пространство имён: Tessa.UI.Automation.Helpers
Сборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
C#
public void SetScrollPercent(
	double horizontalPercent,
	double verticalPercent
)

Параметры

horizontalPercent  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.
verticalPercent  Double
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.

Реализации

IScrollProviderSetScrollPercent(Double, Double)

Исключения

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.

См. также