get_text


Description:

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

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 get_slice.

Parameters:

this

a TextBuffer

start

start of a range

end

end of a range

include_hidden_chars

whether to include invisible text

Returns:

an allocated UTF-8 string




2022 vala-language.org