UMD.HCIL.Piccolo.PNode.this C# (CSharp) 메소드

this() 공개 메소드

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
리턴 PNode
		public PNode this[int index] {
			get {
				return children[index];
			}
			set {
				this.RemoveChild(index);
				this.AddChild(index, value);
			}
		}