Condividi tramite


Metodo Document.NewWindow

Crea una nuova finestra in cui visualizzare il documento.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

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

Valore restituito

Tipo: EnvDTE.Window
Oggetto Window.

Note

La nuova finestra creata è una finestra di documento figlio MDI.

Esempi

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Document Interfaccia

Spazio dei nomi EnvDTE