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