Table of Contents

Interface IScrollBar

Namespace
HP.LFT.SDK.WinForms
Assembly
HP.LFT.SDK.dll

A .NET Windows Forms scroll bar.

public interface IScrollBar : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber
Inherited Members
Extension Methods

Properties

ErrorText

Returns the tooltip text of the error icon associated with this object.

string ErrorText { get; }

Property Value

string

Position

The scroll bar position.

int Position { get; }

Property Value

int

Methods

NextLine(int)

Moves this scroll bar down the specified number of lines or emulates pressing the right arrow key the specified number of times.

void NextLine(int numberOfLines = 1)

Parameters

numberOfLines int

Optional. The number of lines to move the scroll bar (Default = 1).

NextPage(int)

Moves this scroll bar down or to the right the specified number of pages.

void NextPage(int numberOfPages = 1)

Parameters

numberOfPages int

Optional. The number of pages to move the scroll bar (Default = 1).

PreviousLine(int)

Moves this scroll bar up the specified number of lines or emulates pressing the left arrow key the specified number of times.

void PreviousLine(int numberOfLines = 1)

Parameters

numberOfLines int

Optional. The number of lines to move the scroll bar (Default = 1).

PreviousPage(int)

Moves this scroll bar up or to the left the specified number of pages.

void PreviousPage(int numberOfPages = 1)

Parameters

numberOfPages int

The number of pages to move the scroll bar (Default = 1).

SetPosition(int)

Sets the scroll bar position.

void SetPosition(int position)

Parameters

position int

The scroll bar position to be set.