Text.scrollSubstringToPoint

Move the top-left of a substring of text to a given position of the screen by scrolling all necessary parents.

interface Text
bool
scrollSubstringToPoint

Parameters

startOffset int

start offset in the text

endOffset int

end offset in the text, or -1 for the end of the text.

coords atk.types.CoordType

specify whether coordinates are relative to the screen or to the parent object.

x int

x-position where to scroll to

y int

y-position where to scroll to

Return Value

Type: bool

whether scrolling was successful.