TreeListModel.getRow

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 g_list_model_get_item().

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

class TreeListModel
getRow
()

Parameters

position uint

the position of the row to fetch

Return Value

The row item

Meta