PNode.AddChildren Method (ICollection)

Add a collection of nodes to be children of this node.

protected virtual void AddChildren(
   ICollection nodes


A collection of nodes to be added to this node.


This method allows you to pass in any ICollection, rather than a PNodeList. This can be useful if you are using an ArrayList or some other collection type to store PNodes. Note, however, that this list still must contain only objects that extend PNode otherwise you will get a runtime error. To protect against problems of this type, use the AddChildren method instead.

If these nodes already have parents they will first be removed from those parents.

See Also

PNode Class | UMD.HCIL.Piccolo Namespace | PNode.AddChildren Overload List