TextPanes インターフェイス

更新 : 2007 年 11 月

テキスト エディタ ウィンドウ内のすべての TextPane オブジェクトを含みます。

名前空間 :  EnvDTE
アセンブリ :  EnvDTE (EnvDTE.dll 内)

構文

'宣言
<GuidAttribute("D9013D31-3652-46B2-A25A-29A881B9F86B")> _
Public Interface TextPanes _
    Implements IEnumerable
'使用
Dim instance As TextPanes
[GuidAttribute("D9013D31-3652-46B2-A25A-29A881B9F86B")]
public interface TextPanes : IEnumerable
[GuidAttribute(L"D9013D31-3652-46B2-A25A-29A881B9F86B")]
public interface class TextPanes : IEnumerable
public interface TextPanes extends IEnumerable

解説

テキスト エディタ ウィンドウは、2 つのペインに分割できます。TextPane オブジェクトを使用すると、高さや幅などのペインのプロパティだけでなく、各ペインに関連付けられている特定のテキストの選択範囲にもアクセスできます。TextPanes コレクションには、テキスト エディタ ウィンドウの 1 つ以上の TextPane オブジェクトが含まれます。

Sub TextPanesExample(ByVal dte As EnvDTE.DTE)
    Dim objTW As TextWindow
    Dim colPanes As TextPanes

    objTW = dte.ActiveWindow.Object
    colPanes = objTW.Panes
    MsgBox("The """ & objTW.Parent.Caption & """ window contains " & _
    Str(colPanes.Count) & " pane(s).")
End Sub
public void TextPanesExample(_DTE dte)
{
    TextWindow tw;
    TextPanes tps;

    tw = (TextWindow)dte.ActiveWindow.Object;
    tps = tw.Panes;
    MessageBox.Show ("The \"" + tw.Parent.Caption + "\"" + " window    
    contains " + tps.Count.ToString () + " pane(s).");
}

参照

参照

TextPanes メンバ

EnvDTE 名前空間