iter_nth_child


Description:

public abstract bool iter_nth_child (out TreeIter iter, TreeIter? parent, int n)

Sets iter to be the child of parent, using the given index.

The first index is 0. If n is too big, or parent has no children, iter is set to an invalid iterator and false is returned. parent will remain a valid node after this function has been called. As a special case, if parent is null, then the n-th root node is set.

Parameters:

this

a TreeModel

iter

the TreeIter-struct to set to the nth child

parent

the TreeIter-struct to get the child from, or null .

n

the index of the desired child

Returns:

true, if parent has an n-th child