get_selection_bounds


Description:

public abstract bool get_selection_bounds (out int start_pos, out int end_pos)

Retrieves the selection bound of the editable.

start_pos will be filled with the start of the selection and end_pos with end. If no text was selected both will be identical and false will be returned.

Note that positions are specified in characters, not bytes.

Parameters:

this

a Editable

start_pos

location to store the starting position, or null

end_pos

location to store the end position, or null

Returns:

true if there is a non-empty selection, false otherwise