/// <summary> /// Sends to entity to the bottom of the z-order stack. /// </summary> /// <param name="entity">The entity.</param> public void SendToBack(IDiagramEntity entity) { if (mPaintables.Contains(entity)) { mPaintables.Remove(entity); mPaintables.Insert(0, entity); ReAssignSceneIndex(); Rectangle rec = entity.Rectangle; rec.Inflate(20, 20); this.RaiseOnInvalidateRectangle(Rectangle); } }