Gtk.TextIter.prototype.get_line

function get_line():Number {
    // Gjs wrapper for gtk_text_iter_get_line()
}

Returns the line number containing the iterator. Lines in a Gtk.TextBuffer are numbered beginning with 0 for the first line in the buffer.

Returns

a line number