get_selection_bound


Description:

public unowned TextMark get_selection_bound ()

Returns the mark that represents the selection bound.

Equivalent to calling get_mark to get the mark named “selection_bound”, but very slightly more efficient, and involves less typing.

The currently-selected text in this is the region between the “selection_bound” and “insert” marks. If “selection_bound” and “insert” are in the same place, then there is no current selection. get_selection_bounds is another convenient function for handling the selection, if you just want to know whether there’s a selection and what its bounds are.

Parameters:

this

a TextBuffer

Returns:

selection bound mark




2022 vala-language.org