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

MoveInFrontOf() public method

Change the order of this node in its parent's children list so that it will draw after the given sibling node.
public MoveInFrontOf ( PNode sibling ) : void
sibling PNode The sibling to move in front of.
return void
		public void MoveInFrontOf(PNode sibling) {
			PNode p = parent;
			if (p != null && p == sibling.Parent) {
				p.RemoveChild(this);
				int index = p.IndexOfChild(sibling);
				p.AddChild(index + 1, this);
			}
		}