IScrollProvider Interface
Definition
Exposes methods and properties to support access by a UI Automation client to a control that acts as a scrollable container for a collection of child objects.
public interface IScrollProvider
Methods
| Name | Description |
|---|---|
| Scroll | Scrolls the visible region of the content area horizontally and vertically. |
| SetScrollPercent | Sets the horizontal and vertical scroll position as a percentage of the total content area within the control. |
Scroll Method
Scrolls the visible region of the content area horizontally and vertically.
public void Scroll(Avalonia.Automation.Provider.ScrollAmount horizontalAmount, Avalonia.Automation.Provider.ScrollAmount verticalAmount)
Parameters
horizontalAmount Avalonia.Automation.Provider.ScrollAmount
The horizontal increment specific to the control.
verticalAmount Avalonia.Automation.Provider.ScrollAmount
The vertical increment specific to the control.
Remarks
- Windows
IScrollProvider.Scroll - macOSNo mapping.
SetScrollPercent Method
Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.
public void SetScrollPercent(double horizontalPercent, double verticalPercent)
Parameters
horizontalPercent double
The horizontal position as a percentage of the content area's total range. Avalonia.Automation.ScrollPatternIdentifiers.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. Avalonia.Automation.ScrollPatternIdentifiers.NoScroll should be passed in if the control cannot be scrolled in this direction.
Remarks
- Windows
IScrollProvider.SetScrollPercent - macOSNo mapping.
Properties
| Name | Description |
|---|---|
| HorizontalScrollPercent | Gets the current horizontal scroll position. |
| HorizontalViewSize | Gets the current horizontal view size. |
| HorizontallyScrollable | Gets a value that indicates whether the control can scroll horizontally. |
| VerticalScrollPercent | Gets the current vertical scroll position. |
| VerticalViewSize | Gets the vertical view size. |
| VerticallyScrollable | Gets a value that indicates whether the control can scroll vertically. |
HorizontalScrollPercent Property
Gets the current horizontal scroll position.
public double HorizontalScrollPercent { get; set; }
Remarks
- Windows
IScrollProvider.HorizontalScrollPercent - macOSNo mapping.
HorizontalViewSize Property
Gets the current horizontal view size.
public double HorizontalViewSize { get; set; }
Remarks
- Windows
IScrollProvider.HorizontalViewSize - macOSNo mapping.
HorizontallyScrollable Property
Gets a value that indicates whether the control can scroll horizontally.
public bool HorizontallyScrollable { get; set; }
Remarks
- Windows
IScrollProvider.HorizontallyScrollable - macOSNo mapping.
VerticalScrollPercent Property
Gets the current vertical scroll position.
public double VerticalScrollPercent { get; set; }
Remarks
- Windows
IScrollProvider.VerticalScrollPercent - macOSNo mapping.
VerticalViewSize Property
Gets the vertical view size.
public double VerticalViewSize { get; set; }
Remarks
- Windows
IScrollProvider.VerticalViewSize - macOSNo mapping.
VerticallyScrollable Property
Gets a value that indicates whether the control can scroll vertically.
public bool VerticallyScrollable { get; set; }
Remarks
- Windows
IScrollProvider.VerticallyScrollable - macOSNo mapping.