Exemple #1
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();
     }
 }
Exemple #2
0
 private static void _send_selection(IVisio.Selection selection, Models.ShapeSendDirection dir)
 {
     if (dir == Models.ShapeSendDirection.ToBack)
     {
         selection.SendToBack();
     }
     else if (dir == Models.ShapeSendDirection.Backward)
     {
         selection.SendBackward();
     }
     else if (dir == Models.ShapeSendDirection.Forward)
     {
         selection.BringForward();
     }
     else if (dir == Models.ShapeSendDirection.ToFront)
     {
         selection.BringToFront();
     }
 }
Exemple #3
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();
     }
 }
 private static void SendShapes(IVisio.Selection selection, VisioAutomation.Scripting.Layout.ShapeSendDirection dir)
 {
     if (dir == VisioAutomation.Scripting.Layout.ShapeSendDirection.ToBack)
     {
         selection.SendToBack();
     }
     else if (dir == VisioAutomation.Scripting.Layout.ShapeSendDirection.Backward)
     {
         selection.SendBackward();
     }
     else if (dir == VisioAutomation.Scripting.Layout.ShapeSendDirection.Forward)
     {
         selection.BringForward();
     }
     else if (dir == VisioAutomation.Scripting.Layout.ShapeSendDirection.ToFront)
     {
         selection.BringToFront();
     }
 }