ScrollProviderWrapperSetScrollPercent - метод
Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.
Пространство имён: Tessa.UI.Automation.HelpersСборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
public void SetScrollPercent(
double horizontalPercent,
double verticalPercent
)
Public Sub SetScrollPercent (
horizontalPercent As Double,
verticalPercent As Double
)
public:
virtual void SetScrollPercent(
double horizontalPercent,
double verticalPercent
) sealed
abstract SetScrollPercent :
horizontalPercent : float *
verticalPercent : float -> unit
override SetScrollPercent :
horizontalPercent : float *
verticalPercent : float -> unit
- 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) ArgumentException | A value that cannot be converted to a double is passed in. |
ArgumentOutOfRangeException | 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. |
InvalidOperationException | An attempt is made to scroll in an unsupported direction. |