Document.NewWindow-Methode

Erstellt ein neues Fenster, in dem das Dokument angezeigt werden soll.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Function NewWindow As Window
Window NewWindow()
Window^ NewWindow()
abstract NewWindow : unit -> Window 
function NewWindow() : Window

Rückgabewert

Typ: EnvDTE.Window
Ein Window-Objekt.

Hinweise

Das erstellte neue Fenster ist ein untergeordnetes MDI-Dokumentfenster.

Beispiele

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-Sicherheit

Siehe auch

Referenz

Document Schnittstelle

EnvDTE-Namespace