Beispiel #1
0
        public void Send(IList <IVisio.Shape> target_shapes, VA.Selection.ShapeSendDirection dir)
        {
            this.AssertApplicationAvailable();
            this.AssertDocumentAvailable();

            int shape_count = this.GetTargetSelection(target_shapes);

            if (shape_count < 1)
            {
                return;
            }

            var selection = Client.Selection.Get();

            VA.Selection.SelectionHelper.SendShapes(selection, dir);
        }
Beispiel #2
0
 public static void SendShapes(IVisio.Selection selection, VA.Selection.ShapeSendDirection dir)
 {
     if (dir == VA.Selection.ShapeSendDirection.ToBack)
     {
         selection.SendToBack();
     }
     else if (dir == VA.Selection.ShapeSendDirection.Backward)
     {
         selection.SendBackward();
     }
     else if (dir == VA.Selection.ShapeSendDirection.Forward)
     {
         selection.BringForward();
     }
     else if (dir == VA.Selection.ShapeSendDirection.ToFront)
     {
         selection.BringToFront();
     }
 }