Class ScrollViewerAutomationPeer
- Namespace
- Avalonia.Automation.Peers
- Assembly
- Avalonia.Controls.dll
public class ScrollViewerAutomationPeer : ControlAutomationPeer, IScrollProvider
- Inheritance
-
ScrollViewerAutomationPeer
- Implements
- Inherited Members
Constructors
ScrollViewerAutomationPeer(ScrollViewer)
public ScrollViewerAutomationPeer(ScrollViewer owner)
Parameters
owner
ScrollViewer
Properties
HorizontalScrollPercent
Gets the current horizontal scroll position.
public double HorizontalScrollPercent { get; }
Property Value
Remarks
Windows |
IScrollProvider.HorizontalScrollPercent
|
macOS | No mapping. |
HorizontalViewSize
Gets the current horizontal view size.
public double HorizontalViewSize { get; }
Property Value
Remarks
Windows |
IScrollProvider.HorizontalViewSize
|
macOS | No mapping. |
HorizontallyScrollable
Gets a value that indicates whether the control can scroll horizontally.
public bool HorizontallyScrollable { get; }
Property Value
Remarks
Windows |
IScrollProvider.HorizontallyScrollable
|
macOS | No mapping. |
Owner
public ScrollViewer Owner { get; }
Property Value
VerticalScrollPercent
Gets the current vertical scroll position.
public double VerticalScrollPercent { get; }
Property Value
Remarks
Windows |
IScrollProvider.VerticalScrollPercent
|
macOS | No mapping. |
VerticalViewSize
Gets the vertical view size.
public double VerticalViewSize { get; }
Property Value
Remarks
Windows |
IScrollProvider.VerticalViewSize
|
macOS | No mapping. |
VerticallyScrollable
Gets a value that indicates whether the control can scroll vertically.
public bool VerticallyScrollable { get; }
Property Value
Remarks
Windows |
IScrollProvider.VerticallyScrollable
|
macOS | No mapping. |
Methods
GetAutomationControlTypeCore()
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
IsContentElementCore()
protected override bool IsContentElementCore()
Returns
IsControlElementCore()
protected override bool IsControlElementCore()
Returns
Scroll(ScrollAmount, ScrollAmount)
Scrolls the visible region of the content area horizontally and vertically.
public void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
Parameters
horizontalAmount
ScrollAmountThe horizontal increment specific to the control.
verticalAmount
ScrollAmountThe vertical increment specific to the control.
Remarks
Windows |
IScrollProvider.Scroll
|
macOS | No mapping. |
SetScrollPercent(double, double)
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
doubleThe 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
doubleThe 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
Windows |
IScrollProvider.SetScrollPercent
|
macOS | No mapping. |