ToolWindows.OutputWindow Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Nesneyi alır OutputWindow .
public:
property EnvDTE::OutputWindow ^ OutputWindow { EnvDTE::OutputWindow ^ get(); };
public:
property EnvDTE::OutputWindow ^ OutputWindow { EnvDTE::OutputWindow ^ get(); };
[System.Runtime.InteropServices.DispId(7)]
public EnvDTE.OutputWindow OutputWindow { [System.Runtime.InteropServices.DispId(7)] get; }
[<System.Runtime.InteropServices.DispId(7)>]
[<get: System.Runtime.InteropServices.DispId(7)>]
member this.OutputWindow : EnvDTE.OutputWindow
Public ReadOnly Property OutputWindow As OutputWindow
Özellik Değeri
Bir OutputWindow nesnesi.
- Öznitelikler
Örnekler
Bu örnek, "çıktım" başlıklı bir Çıkış penceresi ekler, onu etkinleştirir, buna bir metin ekler ve sonra onu temizler.
Imports EnvDTE
Imports EnvDTE80
Public Sub OutputWindowManip(ByVal dte As DTE2)
Dim myOut As OutputWindow
myOut = _applicationObject.ToolWindows.OutputWindow
Dim myPane As OutputWindowPane
MsgBox("Creating an output window.")
myPane = myOut.OutputWindowPanes.Add("My output")
myPane.Activate()
MsgBox("Adding some text to the output window...")
myPane.OutputString("Adding some text to the output window.")
MsgBox("Clear the text")
myPane.Clear()
End Sub
using EnvDTE;
using EnvDTE80;
using System.Windows.Forms;
public void OutputWindowManip(DTE2 dte)
{
OutputWindow myOut;
myOut = _applicationObject.ToolWindows.OutputWindow;
OutputWindowPane myPane;
MessageBox.Show("Creating an output window...");
myPane = myOut.OutputWindowPanes.Add("My output");
myPane.Activate();
MessageBox.Show("Adding some text to the output window...");
myPane.OutputString("Adding some text to the output window.");
MessageBox.Show("Clear the text");
myPane.Clear();
}