Gtk.TextBuffer.DeleteSelection Method
Deletes the currently-selected text

Syntax

public bool DeleteSelection (bool interactive, bool default_editable)

Parameters

interactive
whether the deletion is caused by user interaction
default_editable
whether the buffer is editable by default

Returns

whether there was a non-empty selection to delete

Remarks

Deletes the range between the "insert" and "selection_bound" marks, that is, the currently-selected text. If interactive is true, the editability of the selection will be considered (users can't delete uneditable text).

Requirements

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