Text.addSelection

bool addSelection(int startOffset, int endOffset)

Adds a selection bounded by the specified offsets.

Parameters

startOffsetthe starting character offset of the selected region
endOffsetthe offset of the first character after the selected region.

Returns

true if successful, false otherwise