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(); } }
void _VisioApplication_ConvertToGroupCanceled(Microsoft.Office.Interop.Visio.Selection Selection) { DisplayInWatchWindow(countConvertToGroupCanceled++, System.Reflection.MethodInfo.GetCurrentMethod().Name); }
void _VisioApplication_BeforeSelectionDelete(Microsoft.Office.Interop.Visio.Selection Selection) { DisplayInWatchWindow(countBeforeSelectionDelete++, System.Reflection.MethodInfo.GetCurrentMethod().Name); }
bool _VisioApplication_QueryCancelConvertToGroup(Microsoft.Office.Interop.Visio.Selection Selection) { DisplayInWatchWindow(countQueryCancelConvertToGroup++, System.Reflection.MethodInfo.GetCurrentMethod().Name); return(false); }