Compartir a través de


TextWindow.Panes Property

Gets the collection of panes in the TextWindow object.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
ReadOnly Property Panes As TextPanes
TextPanes Panes { get; }
property TextPanes^ Panes {
    TextPanes^ get ();
}
abstract Panes : TextPanes with 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

See Also

Reference

TextWindow Interface

EnvDTE Namespace