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

MoveToBack() public method

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

Usage Example

Example #1
0
 public InterpData()
     : base()
 {
     InterpGroups = new List<InterpGroup>();
     TimelineView = new PNode();
     AddChild(TimelineView);
     TimelineView.MoveToBack();
     TimelineView.Pickable = false;
     //TimelineView.Brush = new SolidBrush(Color.FromArgb(60, 60, 60));
     TimelineView.SetBounds(0, 0, 3600, Height);
     TimelineView.TranslateBy(Timeline.ListWidth, 0);
     TimeScale = PPath.CreateRectangle(0, 0, 3600, Timeline.InfoHeight);
     TimeScale.TranslateBy(Timeline.ListWidth, 0);
     TimeScale.Pickable = false;
     TimeScale.Brush = new SolidBrush(Color.FromArgb(80, 80, 80));
     AddChild(TimeScale);
     TimeScale.MoveToFront();
     //seperationLine = PPath.CreateLine(Timeline.ListWidth, 0, Timeline.ListWidth, 10);
     //seperationLine.Pickable = false;
     //AddChild(seperationLine);
 }