public static void Paste(HostSurface hostSurface) { IMenuCommandService ims = hostSurface.GetService(typeof(IMenuCommandService)) as IMenuCommandService; if (ims != null) { ims.GlobalInvoke(StandardCommands.Paste); } }
public static void SelectAll(HostSurface hostSurface) { IMenuCommandService ims = hostSurface.GetService(typeof(IMenuCommandService)) as IMenuCommandService; ims.GlobalInvoke(StandardCommands.SelectAll); }