Advertisement
Guest User

Untitled

a guest
May 25th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1.         [ShellCommandAttribute(Name = "Edit.Cut", Category = "Edit", Localizedname = "Cut", Icon = 6)]
  2.         private void CommandExecuteCut(ICommandInvokeArgs Args)
  3.         {
  4.             Window shell = DTE.Shell as Window;
  5.             if (shell != null)
  6.             {
  7.                 ApplicationCommands.Cut.Execute(null, FocusManager.GetFocusedElement(shell));
  8.             }
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement