set_selection


Description:

public bool set_selection (int selection_num, int start_offset, int end_offset) throws Error

Changes the bounds of an existing Text text selection.

Parameters:

this

a pointer to the Text object on which to operate.

selection_num

a zero-offset index indicating which text selection to modify.

start_offset

a int indicating the new starting offset for the selection.

end_offset

a int indicating the desired new offset of the first character after the selection.

Returns:

TRUE if successful, FALSE otherwise.




2022 vala-language.org