Table of Contents

Interface IScrollPattern

Namespace
HP.LFT.SDK.UIAPro
Assembly
HP.LFT.SDK.dll

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

bool

CanScrollVertically

Indicates whether the UIA Pro element can scroll vertically.

bool CanScrollVertically { get; }

Property Value

bool

HorizontalScrollPercent

The current horizontal scroll position.

double HorizontalScrollPercent { get; set; }

Property Value

double

HorizontalViewSize

The current horizontal view size.

double HorizontalViewSize { get; }

Property Value

double

VerticalScrollPercent

The current vertical scroll position.

double VerticalScrollPercent { get; set; }

Property Value

double

VerticalViewSize

The current vertical view size.

double VerticalViewSize { get; }

Property Value

double

Methods

Scroll(ScrollAmount, ScrollAmount)

Scrolls the visible region of the content area horizontally and vertically.

void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)

Parameters

horizontalAmount ScrollAmount

The horizontal increment specific to the control.

verticalAmount ScrollAmount

The vertical increment specific to the control.

ScrollHorizontal(ScrollAmount)

Scrolls the visible region of the content area horizontally.

void ScrollHorizontal(ScrollAmount horizontalAmount)

Parameters

horizontalAmount ScrollAmount

The horizontal increment specific to the control.

ScrollVertical(ScrollAmount)

Scrolls the visible region of the content area vertically.

void ScrollVertical(ScrollAmount verticalAmount)

Parameters

verticalAmount ScrollAmount

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.

void SetScrollPercent(double horizontalPercent, double verticalPercent)

Parameters

horizontalPercent double

The percentage of the total horizontal content area.

verticalPercent double

The percentage of the total vertical content area.