offsetToPosition
Converts a character offset in the text to a Position.
Return
the Position corresponding to the given offset
Parameters
text
the text content to search in
offset
the character offset to convert
Converts a character offset in the text to a Position.
the Position corresponding to the given offset
the text content to search in
the character offset to convert