Document.NewWindow メソッド

更新 : 2007 年 11 月

ドキュメントを表示する新しいウィンドウを作成します。

名前空間 :  EnvDTE
アセンブリ :  EnvDTE (EnvDTE.dll 内)

構文

'宣言
Function NewWindow As Window
'使用
Dim instance As Document
Dim returnValue As Window

returnValue = instance.NewWindow()
Window NewWindow()
Window^ NewWindow()
function NewWindow() : Window

戻り値

型 : EnvDTE.Window

Window オブジェクト。

解説

新規作成されるウィンドウは、MDI 子ドキュメント ウィンドウです。

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

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

Document インターフェイス

Document メンバ

EnvDTE 名前空間