共用方式為


TextWindow.Panes 屬性

取得在 TextWindow 物件中的窗格集合。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
ReadOnly Property Panes As TextPanes
TextPanes Panes { get; }
property TextPanes^ Panes {
    TextPanes^ get ();
}
abstract Panes : TextPanes
function get Panes () : TextPanes

屬性值

型別:EnvDTE.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).");
}

.NET Framework 安全性

請參閱

參考

TextWindow 介面

EnvDTE 命名空間