IScrollProviderSetScrollPercent Method

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

Definition

Namespace: Avalonia.Automation.Provider
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
void SetScrollPercent(
	double horizontalPercent,
	double verticalPercent
)

Parameters

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.

Remarks

WindowsIScrollProvider.SetScrollPercent
macOSNo mapping.

See Also