Table of Contents

Interface ITextPattern

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

The methods and properties used to interact with text.

public interface ITextPattern

Properties

Selection

The object’s selected text, or an empty string if no text is selected.

string Selection { get; }

Property Value

string

SupportedTextSelection

The type of text selection that is supported by the control.

SupportedTextSelection SupportedTextSelection { get; }

Property Value

SupportedTextSelection

Text

The object's text.

string Text { get; }

Property Value

string

VisibleText

The object's visible text.

string VisibleText { get; }

Property Value

string

Methods

ClearSelection()

Deselect all / any selected text from the object

void ClearSelection()

ScrollIntoView(int, TextUnit, Direction, Alignment)

Scrolls into view.

void ScrollIntoView(int numberOfUnits, TextUnit unitType = TextUnit.Line, Direction direction = Direction.Forward, Alignment alignment = Alignment.Top)

Parameters

numberOfUnits int

0-based index

unitType TextUnit

The unit type

direction Direction

The direction of scrolling

alignment Alignment

The alignment

Select(int, int?)

Selects the specified text in the object.

void Select(int start, int? length = null)

Parameters

start int

The 0 based index position of the selection begin

length int?

The number of characters to be selected. If not specified all remaining text will be selected

SelectAll()

Selects all of the object’s text.

void SelectAll()