get_row


Description:

public TreeListRow? get_row (uint position)

Gets the row object for the given row.

If position is greater than the number of items in this, null is returned.

The row object can be used to expand and collapse rows as well as to inspect its position in the tree. See its documentation for details.

This row object is persistent and will refer to the current item as long as the row is present in this, independent of other rows being added or removed.

If this is set to not be passthrough, this function is equivalent to calling get_item.

Do not confuse this function with [method@Gtk.TreeListModel.get_child_row].

Parameters:

this

a `GtkTreeListModel`

position

the position of the row to fetch

Returns:

The row item