TextIF.setCaretOffset

Sets the caret (cursor) position to the specified offset.

interface TextIF
bool
setCaretOffset
(
int offset
)

Parameters

offset int

the character offset of the new caret position

Return Value

Type: bool

TRUE if successful, FALSE otherwise.