insertRange

open fun insertRange(iter: TextIter, start: TextIter, end: TextIter)

Copies text, tags, and paintables between @start and @end and inserts the copy at @iter.

The order of @start and @end doesn’t matter.

Used instead of simply getting/inserting text because it preserves images and tags. If @start and @end are in a different buffer from

Parameters

iter

a position in @buffer

start

a position in a GtkTextBuffer

end

another position in the same buffer as @start