This documentation is archived and is not being maintained.

ActivePane Property (General Extensibility)

Visual Studio .NET 2003

Returns the most recently active pane in the Text or Output window.

[Visual Basic .NET]
Public ReadOnly Property ActivePane() As OutputWindowPane
[Visual Basic 6]
Property Get ActivePane() As OutputWindowPane
[C++]
HRESULT __stdcall get_ActivePane(
   /* [out, retval] */ OutputWindowPane** retVal
);
[C#]
OutputWindowPane ActivePane {get;}
[JScript .NET]
public function get ActivePane() : OutputWindowPane

Return Value

Returns a OutputWindowPane object.

Example

Sub ActivePaneExample()
   ' 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")
   MsgBox("Active window name: " & OW.ActivePane.Name)
End Sub

See Also

Applies To: OutputWindow Object | TextWindow Object

Show: