次の方法で共有


OutputWindow インターフェイス

統合開発環境 (IDE: Integrated Development Environment) の出力ウィンドウを表します。

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

構文

'宣言
<GuidAttribute("EAB0A63D-C3A8-496E-9ACF-A82CEF6A43B3")> _
Public Interface OutputWindow
[GuidAttribute("EAB0A63D-C3A8-496E-9ACF-A82CEF6A43B3")]
public interface OutputWindow
[GuidAttribute(L"EAB0A63D-C3A8-496E-9ACF-A82CEF6A43B3")]
public interface class OutputWindow
[<GuidAttribute("EAB0A63D-C3A8-496E-9ACF-A82CEF6A43B3")>]
type OutputWindow =  interface end
public interface OutputWindow

OutputWindow 型で公開されるメンバーは以下のとおりです。

プロパティ

  名前 説明
パブリック プロパティ ActivePane OutputWindow で直前にアクティブになっていたペインを取得します。
パブリック プロパティ DTE トップレベルの機能拡張オブジェクトを取得します。
パブリック プロパティ OutputWindowPanes OutputWindow オブジェクトの OutputWindowPanes コレクションを取得します。
パブリック プロパティ Parent OutputWindow オブジェクトの直接の親オブジェクトを取得します。

このページのトップへ

解説

出力ウィンドウには、さまざまな IDE ツールのテキスト出力が表示されます。 ツールごとに別個の出力ウィンドウ ペインを使用できます。 ペインは、ウィンドウ上部のドロップダウン ボックスで選択します。 たとえば、ビルド エラーはビルド エラー ペインに表示され、外部コマンド ツールはそれぞれ別個の出力ウィンドウ ペインに表示されます。

Sub OutputWindowExample()
   ' Create a tool window handle for the Output window.
   Dim win As Window = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput)
   ' Create handles to the Output window and its panes.
   Dim OW As OutputWindow = win.Object
   Dim OWp As OutputWindowPane

   ' Add a new pane to the Output window.
   OWp = OW.OutputWindowPanes.Add("A New Pane")
   ' Add a line of text to the new pane.
   OWp.OutputString("Some Text")
End Sub

参照

関連項目

EnvDTE 名前空間