OutputWindowPanes.Add メソッド

更新 : 2007 年 11 月

新しい [出力] ウィンドウ ペインを作成し、コレクションに追加します。

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

構文

'宣言
Function Add ( _
    Name As String _
) As OutputWindowPane
'使用
Dim instance As OutputWindowPanes
Dim Name As String
Dim returnValue As OutputWindowPane

returnValue = instance.Add(Name)
OutputWindowPane Add(
    string Name
)
OutputWindowPane^ Add(
    [InAttribute] String^ Name
)
function Add(
    Name : String
) : OutputWindowPane

パラメータ

  • Name
    型 : System.String

    必ず指定します。新しいペインのキャプション。

戻り値

型 : EnvDTE.OutputWindowPane

OutputWindowPane オブジェクト。

Sub AddExample()
   ' 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

アクセス許可

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

参照

参照

OutputWindowPanes インターフェイス

OutputWindowPanes メンバ

EnvDTE 名前空間