/// <summary> /// Lifts a collection of shapes on top or to bottom. /// </summary> public void LiftShapes(Diagram diagram, IEnumerable<Shape> shapes, ZOrderDestination liftMode) { if (diagram == null) throw new ArgumentNullException("diagram"); if (shapes == null) throw new ArgumentNullException("shapes"); ICommand cmd = new LiftShapeCommand(diagram, shapes, liftMode); Project.ExecuteCommand(cmd); }
/// <summary> /// Lists one shape on top or to bottom /// </summary> public void LiftShape(Diagram diagram, Shape shape, ZOrderDestination liftMode) { if (diagram == null) throw new ArgumentNullException("diagram"); if (shape == null) throw new ArgumentNullException("shape"); ICommand cmd = null; cmd = new LiftShapeCommand(diagram, shape, liftMode); Project.ExecuteCommand(cmd); }