Condividi tramite


Metodo OutputWindowPanes.Add

Crea un nuovo riquadro della finestra Output e lo aggiunge alla raccolta.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

'Dichiarazione
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

Parametri

  • Name
    Tipo: String

    Obbligatorio. Il titolo del nuovo riquadro.

Valore restituito

Tipo: EnvDTE.OutputWindowPane
Un oggetto OutputWindowPane.

Esempi

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

OutputWindowPanes Interfaccia

Spazio dei nomi EnvDTE