Пример #1
0
        public void Send(TargetShapes targets, ShapeSendDirection dir)
        {
            this._client.Application.AssertApplicationAvailable();
            this._client.Document.AssertDocumentAvailable();

            int shape_count = targets.SetSelectionGetSelectedCount(this._client);

            if (shape_count < 1)
            {
                return;
            }

            var selection = this._client.Selection.Get();

            ArrangeCommands.SendShapes(selection, dir);
        }
Пример #2
0
 public static void SendShapes(IVisio.Selection selection, ShapeSendDirection dir)
 {
     if (dir == ShapeSendDirection.ToBack)
     {
         selection.SendToBack();
     }
     else if (dir == ShapeSendDirection.Backward)
     {
         selection.SendBackward();
     }
     else if (dir == ShapeSendDirection.Forward)
     {
         selection.BringForward();
     }
     else if (dir == ShapeSendDirection.ToFront)
     {
         selection.BringToFront();
     }
 }
 public static void SendShapes(IVisio.Selection selection, ShapeSendDirection dir)
 {
     if (dir == ShapeSendDirection.ToBack)
     {
         selection.SendToBack();
     }
     else if (dir == ShapeSendDirection.Backward)
     {
         selection.SendBackward();
     }
     else if (dir == ShapeSendDirection.Forward)
     {
         selection.BringForward();
     }
     else if (dir == ShapeSendDirection.ToFront)
     {
         selection.BringToFront();
     }
 }
Пример #4
0
 private static void SendShapes(Microsoft.Office.Interop.Visio.Selection selection, ShapeSendDirection dir)
 {
     if (dir == ShapeSendDirection.ToBack)
     {
         selection.SendToBack();
     }
     else if (dir == ShapeSendDirection.Backward)
     {
         selection.SendBackward();
     }
     else if (dir == ShapeSendDirection.Forward)
     {
         selection.BringForward();
     }
     else if (dir == ShapeSendDirection.ToFront)
     {
         selection.BringToFront();
     }
 }