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)
- C#
- VB
- F#
void SetScrollPercent(
double horizontalPercent,
double verticalPercent
)
Sub SetScrollPercent (
horizontalPercent As Double,
verticalPercent As Double
)
abstract SetScrollPercent :
horizontalPercent : float *
verticalPercent : float -> unit
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.
See Also
Reference
IScrollProvider Interface
Avalonia.Automation.Provider Namespace