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); }
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(); } }
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(); } }