add_selection


Description:

public abstract bool add_selection (int start_offset, int end_offset)

Adds a selection bounded by the specified offsets.

Parameters:

this

an Text

start_offset

the starting character offset of the selected region

end_offset

the offset of the first character after the selected region.

Returns:

true if successful, false otherwise