OutputWindow.OutputWindowPanes 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 OutputWindowPanes 对象的集合 OutputWindow 。
public:
property EnvDTE::OutputWindowPanes ^ OutputWindowPanes { EnvDTE::OutputWindowPanes ^ get(); };
[System.Runtime.InteropServices.DispId(4)]
public EnvDTE.OutputWindowPanes OutputWindowPanes { [System.Runtime.InteropServices.DispId(4)] get; }
[<System.Runtime.InteropServices.DispId(4)>]
[<get: System.Runtime.InteropServices.DispId(4)>]
member this.OutputWindowPanes : EnvDTE.OutputWindowPanes
Public ReadOnly Property OutputWindowPanes As OutputWindowPanes
属性值
- 属性
示例
Sub OutputWindowPanesExample()
' 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 and to the Task List.
OWp.OutputTaskItemString("Some task", vsTaskPriority.vsTaskPriorityHigh, vsTaskCategories.vsTaskCategoryMisc, vsTaskIcon.vsTaskIconComment, "C:\temp", 100, "Some description")
' You can also use the 'True' flag on the end of
' OutputTaskItemString rather than using the next line
' (ForceItemsToTaskList).
OWp.ForceItemsToTaskList()
End Sub