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

this() public method

Allows a PNode to be indexed directly to access it's children.
This provides a shortcut to indexing a node's children. For example, aNode.GetChild(i) is equivalent to aNode[i]. Note that using the indexor to set a child will remove the child currently at that index.
public this ( int index ) : PNode
index int
return PNode
		public PNode this[int index] {
			get {
				return children[index];
			}
			set {
				this.RemoveChild(index);
				this.AddChild(index, value);
			}
		}