Gtk.TextBuffer.GetText Method
Returns the text from a specified range

Syntax

public string GetText (TextIter start, TextIter end, bool include_hidden_chars)

Parameters

start
the beginning of the specified range
end
the end of the specified range
include_hidden_chars
whether to include invisible text

Returns

a string containing the text from the specified range

Remarks

Returns the text in the range specified by start and end. Excludes undisplayed text (text marked with tags that set the invisibility attribute) if include_hidden_chars is false. Does not include characters representing embedded images, so byte and character indexes into the returned string do not correspond to byte and character indexes into the buffer.

Contrast this with TextBuffer.GetSlice(TextIter, TextIter, bool).

Requirements

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