Gtk.TextBuffer.GetSelectionBounds Method
Returns true if some text is selected

Syntax

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

Parameters

start
the location of the beginning of the selection
end
the location of the end of the selection

Returns

Returns true if the selection has nonzero length

Remarks

Returns true if some text is selected; and sets 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.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)