get_selection_bounds


Description:

public bool get_selection_bounds (out TextIter start, out TextIter end)

Returns true if some text is selected; places the bounds of the selection in start and end .

If the selection has length 0, then start and end are filled in with the same value. start and end will be in ascending order. If start and end are null, then they are not filled in, but the return value still indicates whether text is selected.

Parameters:

this

a `GtkTextBuffer` a `GtkTextBuffer`

start

iterator to initialize with selection start

end

iterator to initialize with selection end

Returns:

whether the selection has nonzero length