Skip to main content

SetScrollPercent 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)

void SetScrollPercent(
double horizontalPercent,
double verticalPercent
)
View Source

Parameters

  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.
  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

Reference

IScrollProvider Interface
Avalonia.Automation.Provider Namespace