TextWindow.Panes 属性

定义

获取对象中窗格的集合 TextWindow

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

属性值

TextPanes

一个 TextPanes 集合。

属性

示例

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

适用于