Interface ITextPattern
The methods and properties used to interact with text.
Namespace: HP.LFT.SDK.UIAPro
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITextPattern
Properties
Selection
The object’s selected text, or an empty string if no text is selected.
Declaration
string Selection { get; }
Property Value
| Type | Description |
|---|---|
| string |
SupportedTextSelection
The type of text selection that is supported by the control.
Declaration
SupportedTextSelection SupportedTextSelection { get; }
Property Value
| Type | Description |
|---|---|
| SupportedTextSelection |
Text
The object's text.
Declaration
string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |
VisibleText
The object's visible text.
Declaration
string VisibleText { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ClearSelection()
Deselect all / any selected text from the object
Declaration
void ClearSelection()
ScrollIntoView(int, TextUnit, Direction, Alignment)
Scrolls into view.
Declaration
void ScrollIntoView(int numberOfUnits, TextUnit unitType = TextUnit.Line, Direction direction = Direction.Forward, Alignment alignment = Alignment.Top)
Parameters
| Type | Name | Description |
|---|---|---|
| int | numberOfUnits | 0-based index |
| TextUnit | unitType | The unit type |
| Direction | direction | The direction of scrolling |
| Alignment | alignment | The alignment |
Select(int, int?)
Selects the specified text in the object.
Declaration
void Select(int start, int? length = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | start | The 0 based index position of the selection begin |
| int? | length | The number of characters to be selected. If not specified all remaining text will be selected |
SelectAll()
Selects all of the object’s text.
Declaration
void SelectAll()