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

MoveToFront() public method

Change the order of this node in its parent's children list so that it will draw in front of all of its other sibling nodes.
public MoveToFront ( ) : void
return void
		public virtual void MoveToFront() {
			PNode p = parent;
			if (p != null) {
				p.RemoveChild(this);
				p.AddChild(this);
			}
		}

Usage Example

Example #1
0
			protected override void OnStartDrag(object sender, PInputEventArgs e) {
				base.OnStartDrag (sender, e);
				draggedNode = e.PickedNode;
				draggedNode.MoveToFront();
				nodeStartPosition = draggedNode.Offset;
			}
All Usage Examples Of UMD.HCIL.Piccolo.PNode::MoveToFront