TextBuffer.getText

string getText(gtk.text_iter.TextIter start, gtk.text_iter.TextIter end, bool includeHiddenChars)

Returns the text in the range [start,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 with [gtk.text_buffer.TextBuffer.getSlice].

Parameters

startstart of a range
endend of a range
includeHiddenCharswhether to include invisible text

Returns

an allocated UTF-8 string