TextBuffer.getSlice

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. The returned string includes a 0xFFFC character whenever the buffer contains embedded images, so byte and character indexes into the returned string do correspond to byte and character indexes into the buffer. Contrast with gtk.text_buffer.TextBuffer.getText. Note that 0xFFFC can occur in normal text as well, so it is not a reliable indicator that a paintable or widget is in the buffer.

Parameters

start gtk.text_iter.TextIter

start of a range

end gtk.text_iter.TextIter

end of a range

includeHiddenChars bool

whether to include invisible text

Return Value

Type: string

an allocated UTF-8 string