Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the collection of panes in the TextWindow object.
Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property Panes As TextPanes
'Usage
Dim instance As TextWindow 
Dim value As TextPanes 
value = instance.Panes
TextPanes Panes { get; }
property TextPanes^ Panes {
    TextPanes^ get ();
}
function get Panes () : TextPanes
Property Value
Type: EnvDTE.TextPanes
A TextPanes collection.
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).");
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.