Compartir a través de


OutputWindowPanes.Add (Método)

Crea un nuevo panel de la ventana de salida y lo agrega a la colección.

Espacio de nombres:  EnvDTE
Ensamblado:  EnvDTE (en EnvDTE.dll)

Sintaxis

'Declaración
Function Add ( _
    Name As String _
) As OutputWindowPane
OutputWindowPane Add(
    string Name
)
OutputWindowPane^ Add(
    [InAttribute] String^ Name
)
abstract Add : 
        Name:string -> OutputWindowPane
function Add(
    Name : String
) : OutputWindowPane

Parámetros

  • Name
    Tipo: String

    Obligatorio. Leyenda del nuevo panel.

Valor devuelto

Tipo: EnvDTE.OutputWindowPane
Un objeto OutputWindowPane.

Ejemplos

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

Seguridad de .NET Framework

Vea también

Referencia

OutputWindowPanes Interfaz

EnvDTE (Espacio de nombres)