new TextPattern()
The UIA Pro Text pattern.
Methods
selection() → {Promise.<string>}
Gets the object's selected text, or an empty string if no text is selected.
Returns:
a promise that is fulfilled with the object's visible text.
- Type
- Promise.<string>
supportedTextSelection() → {Promise.<UIAPro.SupportedTextSelection>}
Returns the string that specifies what type of selection the text provider supports.
Returns:
a promise that is fulfilled with the supportedTextSelection of the object.
- Type
- Promise.<UIAPro.SupportedTextSelection>
text() → {Promise.<string>}
Returns the object text.
Returns:
a promise that is fulfilled with the object's text.
- Type
- Promise.<string>
visibleText() → {Promise.<string>}
Returns the visible object text.
Returns:
a promise that is fulfilled with the object's visible text.
- Type
- Promise.<string>