Freigeben über


ToolWindows.CommandWindow Property

Definition

Gets the CommandWindow object.

public:
 property EnvDTE::CommandWindow ^ CommandWindow { EnvDTE::CommandWindow ^ get(); };
public:
 property EnvDTE::CommandWindow ^ CommandWindow { EnvDTE::CommandWindow ^ get(); };
[System.Runtime.InteropServices.DispId(5)]
public EnvDTE.CommandWindow CommandWindow { [System.Runtime.InteropServices.DispId(5)] get; }
[<System.Runtime.InteropServices.DispId(5)>]
[<get: System.Runtime.InteropServices.DispId(5)>]
member this.CommandWindow : EnvDTE.CommandWindow
Public ReadOnly Property CommandWindow As CommandWindow

Property Value

A CommandWindow object.

Attributes

Examples

This example activates the Command Window and adds some text to it.

Imports EnvDTE  
Imports EnvDTE80  
Public Sub CommandWindowManip(ByVal dte As DTE2)  
    Dim myCmd As CommandWindow  
    myCmd = _applicationObject.ToolWindows.CommandWindow  
    MsgBox(myCmd.Parent.Caption & " is about to be activated.")  
    myCmd.Parent.Activate()  
    myCmd.OutputString("Test command window text.")  
End Sub  
using EnvDTE;  
using EnvDTE80;  
using System.Windows.Forms;  
public void CommandWindowManip (DTE2 dte)  
{  
    CommandWindow myCmd;  
    myCmd = _applicationObject.ToolWindows.CommandWindow;  
    MessageBox.Show("The Command Window is about to be activated.");  
    myCmd.Parent.Activate();  
    myCmd.OutputString("Test command window text.");  
}  

Applies to