Partilhar via


Propriedade TextWindow.Panes

Obtém a coleção de painéis de TextWindow objeto.

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

Sintaxe

'Declaração
ReadOnly Property Panes As TextPanes
    Get
TextPanes Panes { get; }
property TextPanes^ Panes {
    TextPanes^ get ();
}
abstract Panes : TextPanes
function get Panes () : TextPanes

Valor de propriedade

Tipo: EnvDTE.TextPanes
A TextPanes coleção.

Exemplos

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).");
}

Segurança do .NET Framework

Consulte também

Referência

TextWindow Interface

Namespace EnvDTE