Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Creates a new window in which to view the document.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Function NewWindow As Window
Window NewWindow()
Window^ NewWindow()
abstract NewWindow : unit -> Window
function NewWindow() : Window
Return Value
Type: EnvDTE.Window
A Window object.
Remarks
The new window created is an MDI child document window.
Examples
Sub NewWindowExample()
' Before running, create a text file or other document window.
Dim docs As Documents
Dim doc As Document
Dim win As Window
docs = documents
docs.SaveAll()
doc = dte.ActiveDocument
win = doc.NewWindow()
doc.Save("c:\temp\docsave.txt")
msgbox(doc.Selection().text)
docs.CloseAll(vsSaveChanges.vsSaveChangesPrompt)
End Sub
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.