Gtk.TreeStore.IterNthChild C# (CSharp) Method

IterNthChild() public method

public IterNthChild ( Gtk &iter, int n ) : bool
iter Gtk
n int
return bool
        public bool IterNthChild(out Gtk.TreeIter iter, int n)
        {
            bool raw_ret = gtk_tree_model_iter_nth_child (Handle, out iter, IntPtr.Zero, n);
            bool ret = raw_ret;
            return ret;
        }

Usage Example

Beispiel #1
0
    private Gtk.TreeIter SetRowValue(Gtk.TreeIter parent, int childIndx,
                                     string cell1, string cell2)
    {
        Gtk.TreeIter child;
        if (itemStore.IterNthChild(out child, parent, childIndx))
        {
            itemStore.SetValue(child, 0, cell1);
            itemStore.SetValue(child, 1, cell2);
        }
        else
        {
            child = itemStore.AppendValues(parent, cell1, cell2);
        }

        return(child);
    }
All Usage Examples Of Gtk.TreeStore::IterNthChild