Package: gtk

Function gtk:text-iter-text

Lambda List

gtk:text-iter-text (start end &key visible)

Arguments

start -- a gtk:text-iter instance for the start of a range
end -- a gtk:text-iter instance for the end of a range
visible -- a boolean keyword argument, the default is false

Return Value

The string for characters from the text buffer.

Details

Returns a string for the text in the given range. If the visible keyword argument is true, invisible text is not included. Invisible text is usually invisible because a gtk:text-tag object with the invisible attribute turned on has been applied to it.

If the range contains non-text elements such as images, the character and byte offsets in the returned string will not correspond to character and byte offsets in the text buffer. If you want offsets to correspond, see the gtk:text-iter-slice function.
 

See also

2025-08-04