Interface IScrollPattern
The methods and properties used to interact with a container control that can be scrolled. The children of this element support IScrollItemPattern.
Namespace: HP.LFT.SDK.UIAPro
Assembly: HP.LFT.SDK.dll
Syntax
public interface IScrollPattern
Properties
CanScrollHorizontally
Indicates whether the UIA Pro element can scroll horizontally.
Declaration
bool CanScrollHorizontally { get; }
Property Value
| Type | Description |
|---|---|
| bool |
CanScrollVertically
Indicates whether the UIA Pro element can scroll vertically.
Declaration
bool CanScrollVertically { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HorizontalScrollPercent
The current horizontal scroll position.
Declaration
double HorizontalScrollPercent { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
HorizontalViewSize
The current horizontal view size.
Declaration
double HorizontalViewSize { get; }
Property Value
| Type | Description |
|---|---|
| double |
VerticalScrollPercent
The current vertical scroll position.
Declaration
double VerticalScrollPercent { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
VerticalViewSize
The current vertical view size.
Declaration
double VerticalViewSize { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
Scroll(ScrollAmount, ScrollAmount)
Scrolls the visible region of the content area horizontally and vertically.
Declaration
void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollAmount | horizontalAmount | The horizontal increment specific to the control. |
| ScrollAmount | verticalAmount | The vertical increment specific to the control. |
ScrollHorizontal(ScrollAmount)
Scrolls the visible region of the content area horizontally.
Declaration
void ScrollHorizontal(ScrollAmount horizontalAmount)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollAmount | horizontalAmount | The horizontal increment specific to the control. |
ScrollVertical(ScrollAmount)
Scrolls the visible region of the content area vertically.
Declaration
void ScrollVertical(ScrollAmount verticalAmount)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollAmount | verticalAmount | The 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.
Declaration
void SetScrollPercent(double horizontalPercent, double verticalPercent)
Parameters
| Type | Name | Description |
|---|---|---|
| double | horizontalPercent | The percentage of the total horizontal content area. |
| double | verticalPercent | The percentage of the total vertical content area. |