Text.getText

string getText(int startOffset, int endOffset)

Gets the specified text.

Parameters

startOffseta starting character offset within text
endOffsetan ending character offset within text, or -1 for the end of the string.

Returns

a newly allocated string containing the text from start_offset up

to, but not including end_offset. Use [glib.global.gfree] to free the returned string.