TextWindow.Panes Property

Definition

Gets the collection of panes in the TextWindow object.

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

Property Value

A TextPanes collection.

Attributes

Examples

Sub PanesExample(ByVal dte As EnvDTE.DTE)  
    Dim twin As TextWindow  
    Dim panes As TextPanes  

    twin = dte.ActiveWindow.Object  
    panes = twin.Panes  
    MsgBox("The """ & twin.Parent.Caption & """ window contains " & _  
    Str(panes.Count) & " pane(s).")  
End Sub  
public void PanesExample(_DTE dte)  
{  
    TextWindow twin;  
    TextPanes tps;  
    twin = (TextWindow)dte.ActiveWindow.Object;  
    tps = twin.Panes;  
    MessageBox.Show ("The \"" + twin.Parent.Caption + "\" window   
    contains " + tps.Count.ToString () + " pane(s).");  
}  

Applies to