Class ScrollViewerAutomationPeer
Exposes ScrollViewer types to UI automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class ScrollViewerAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IScrollProvider
Constructors
| Improve this Doc View SourceScrollViewerAutomationPeer(ScrollViewer)
Initializes a new instance of the ScrollViewerAutomationPeer class.
Declaration
public ScrollViewerAutomationPeer(ScrollViewer owner)
Parameters
Type | Name | Description |
---|---|---|
ScrollViewer | owner | The ScrollViewer object that is associated with this ScrollViewerAutomationPeer instance. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the ScrollViewer object that is associated with this ScrollViewerAutomationPeer instance. This method is called by GetAutomationControlType().
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | A value of the enumeration. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the class that is associated with this peer. This method is called by GetClassName().
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The name of the associated class. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets an object that supports the specified pattern, based on the patterns supported by this automation peer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | patternInterface | One of the enumeration values. |
Returns
Type | Description |
---|---|
System.Object | The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer. |
Overrides
| Improve this Doc View SourceIsControlElementCore()
Gets a value that indicates whether the element associated with this peer is understood by the user as interactive or as contributing to the logical structure in UI.
Declaration
protected override bool IsControlElementCore()
Returns
Type | Description |
---|---|
System.Boolean | true value to indicate that the owner control is interactive; otherwise, false. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIScrollProvider.HorizontallyScrollable
True if control can scroll horizontally
Declaration
bool IScrollProvider.HorizontallyScrollable { get; }
Returns
Type | Description |
---|---|
System.Boolean |
IScrollProvider.HorizontalScrollPercent
Get the current horizontal scroll position
Declaration
double IScrollProvider.HorizontalScrollPercent { get; }
Returns
Type | Description |
---|---|
System.Double |
IScrollProvider.HorizontalViewSize
Equal to the horizontal percentage of the entire control that is currently viewable.
Declaration
double IScrollProvider.HorizontalViewSize { get; }
Returns
Type | Description |
---|---|
System.Double |
IScrollProvider.Scroll(ScrollAmount, ScrollAmount)
Request to scroll horizontally and vertically by the specified amount. The ability to call this method and simultaneously scroll horizontally and vertically provides simple panning support.
Declaration
void IScrollProvider.Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
Parameters
Type | Name | Description |
---|---|---|
ScrollAmount | horizontalAmount | |
ScrollAmount | verticalAmount |
IScrollProvider.SetScrollPercent(Double, Double)
Request to set the current horizontal and Vertical scroll position by percent (0-100). Passing in the value of "-1", represented by the constant "NoScroll", will indicate that scrolling in that direction should be ignored. The ability to call this method and simultaneously scroll horizontally and vertically provides simple panning support.
Declaration
void IScrollProvider.SetScrollPercent(double horizontalPercent, double verticalPercent)
Parameters
Type | Name | Description |
---|---|---|
System.Double | horizontalPercent | |
System.Double | verticalPercent |
IScrollProvider.VerticallyScrollable
True if control can scroll vertically
Declaration
bool IScrollProvider.VerticallyScrollable { get; }
Returns
Type | Description |
---|---|
System.Boolean |
IScrollProvider.VerticalScrollPercent
Get the current vertical scroll position
Declaration
double IScrollProvider.VerticalScrollPercent { get; }
Returns
Type | Description |
---|---|
System.Double |
IScrollProvider.VerticalViewSize
Equal to the vertical percentage of the entire control that is currently viewable.
Declaration
double IScrollProvider.VerticalViewSize { get; }
Returns
Type | Description |
---|---|
System.Double |