Package: gtk

Function gtk:text-iter-text

Lambda List

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

Arguments

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

Return Value

The string with characters from the text buffer.

Details

Returns a string with 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

2024-7-26