Interface IScrollPattern
The methods and properties used to interact with a container control that can be scrolled. The children of this element support IScrollItemPattern.
public interface IScrollPattern
Properties
CanScrollHorizontally
Indicates whether the UIA Pro element can scroll horizontally.
bool CanScrollHorizontally { get; }
Property Value
CanScrollVertically
Indicates whether the UIA Pro element can scroll vertically.
bool CanScrollVertically { get; }
Property Value
HorizontalScrollPercent
The current horizontal scroll position.
double HorizontalScrollPercent { get; set; }
Property Value
HorizontalViewSize
The current horizontal view size.
double HorizontalViewSize { get; }
Property Value
VerticalScrollPercent
The current vertical scroll position.
double VerticalScrollPercent { get; set; }
Property Value
VerticalViewSize
The current vertical view size.
double VerticalViewSize { get; }
Property Value
Methods
Scroll(ScrollAmount, ScrollAmount)
Scrolls the visible region of the content area horizontally and vertically.
void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
Parameters
horizontalAmountScrollAmountThe horizontal increment specific to the control.
verticalAmountScrollAmountThe vertical increment specific to the control.
ScrollHorizontal(ScrollAmount)
Scrolls the visible region of the content area horizontally.
void ScrollHorizontal(ScrollAmount horizontalAmount)
Parameters
horizontalAmountScrollAmountThe horizontal increment specific to the control.
ScrollVertical(ScrollAmount)
Scrolls the visible region of the content area vertically.
void ScrollVertical(ScrollAmount verticalAmount)
Parameters
verticalAmountScrollAmountThe vertical increment specific to the control.
SetScrollPercent(double, double)
Sets the horizontal and/or vertical scroll position as a percentage of the total content area within the automation element.
void SetScrollPercent(double horizontalPercent, double verticalPercent)