OutputWindowPanes.Add(String) Yöntem

Tanım

Yeni bir Çıkış pencere bölmesi oluşturur ve onu koleksiyona ekler.

public:
 EnvDTE::OutputWindowPane ^ Add(System::String ^ Name);
public:
 EnvDTE::OutputWindowPane ^ Add(Platform::String ^ Name);
EnvDTE::OutputWindowPane Add(std::wstring const & Name);
[System.Runtime.InteropServices.DispId(5)]
public EnvDTE.OutputWindowPane Add (string Name);
[<System.Runtime.InteropServices.DispId(5)>]
abstract member Add : string -> EnvDTE.OutputWindowPane
Public Function Add (Name As String) As OutputWindowPane

Parametreler

Name
String

Gereklidir. Yeni bölme için başlık.

Döndürülenler

OutputWindowPane

Bir OutputWindowPane nesnesi.

Öznitelikler

Örnekler

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  

Şunlara uygulanır