UMD.HCIL.Piccolo.PNode.AddChildren C# (CSharp) Method

AddChildren() protected method

Add a collection of nodes to be children of 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(PNodeList) method instead.

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

protected AddChildren ( ICollection nodes ) : void
nodes ICollection /// A collection of nodes to be added to this node. ///
return void
		protected virtual void AddChildren(ICollection nodes) {
			foreach (PNode each in nodes) {
				AddChild(each);
			}
		}

Same methods

PNode::AddChildren ( UMD.HCIL.Piccolo.Util.PNodeList nodes ) : void