Gtk.TextBuffer.InsertInteractive Method
Insert text if the cursor is at an editable point in the buffer

Syntax

public bool InsertInteractive (ref TextIter iter, string text, bool default_editable)

Parameters

iter
a location in the buffer
text
the text to be inserted
default_editable
the default editability of buffer

Returns

whether text was actually inserted

Remarks

Similar to TextBuffer.Insert(TextIter, string), but the insertion will not occur if iter is at a non-editable location in the buffer. Usually you want to prevent insertions at ineditable locations if the insertion results from a user action (is interactive).

default_editable indicates the editability of text that does not have a tag affecting editability applied to it. Typically the result of TextView.Editable is appropriate here.

Requirements

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