get_iter_at_line_offset


Description:

public bool get_iter_at_line_offset (out TextIter iter, int line_number, int char_offset)

Obtains an iterator pointing to char_offset within the given line.

Note characters, not bytes; UTF-8 may encode one character as multiple bytes.

If line_number is greater than or equal to the number of lines in the this, the end iterator is returned. And if char_offset is off the end of the line, the iterator at the end of the line is returned.

Parameters:

this

a `GtkTextBuffer`

iter

iterator to initialize

line_number

line number counting from 0

char_offset

char offset from start of line

Returns:

whether the exact position has been found