TextBuffer.getIterAtOffset

void getIterAtOffset(out gtk.text_iter.TextIter iter, int charOffset)

Initializes iter to a position char_offset chars from the start of the entire buffer. If char_offset is -1 or greater than the number of characters in the buffer, iter is initialized to the end iterator, the iterator one past the last valid character in the buffer.

Parameters

iteriterator to initialize
charOffsetchar offset from start of buffer, counting from 0, or -1