TreeListModel.getRow

gtk.tree_list_row.TreeListRow getRow(uint position)

Gets the row object for the given row.

If position is greater than the number of items in self, 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 self, independent of other rows being added or removed.

If self is set to not be passthrough, this function is equivalent to calling [gio.list_model.ListModel.getItem].

Do not confuse this function with [gtk.tree_list_model.TreeListModel.getChildRow].

Parameters

positionthe position of the row to fetch

Returns

The row item