public static TextDocument GetActiveTextDocument(this DTE dte)
 {
     return((TextDocument)dte.GetActiveDocument().Object("TextDocument"));
 }
Example #2
0
 public static TextDocument GetActiveTextDocument(this DTE dte)
 {
     Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();
     return((TextDocument)dte.GetActiveDocument().Object("TextDocument"));
 }