- start
- the beginning of the specified range
- end
- the end of the specified range
- include_hidden_chars
- whether to include invisible text
a string containing the text from the specified range
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).