TextWindow インターフェイス

更新 : 2007 年 11 月

テキスト ドキュメントを含むウィンドウを表します。

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

構文

'宣言
<GuidAttribute("2FC54DC9-922B-44EB-8CC0-BA182584DC4B")> _
Public Interface TextWindow
'使用
Dim instance As TextWindow
[GuidAttribute("2FC54DC9-922B-44EB-8CC0-BA182584DC4B")]
public interface TextWindow
[GuidAttribute(L"2FC54DC9-922B-44EB-8CC0-BA182584DC4B")]
public interface class TextWindow
public interface TextWindow

解説

TextWindow オブジェクトは、ウィンドウがコア エディタ ウィンドウである場合に、Window オブジェクトの Object プロパティによって返されます。ウィンドウ内のドキュメントが HTML ドキュメントの場合は、デザイン ビューまたはソース ビューのどちらが設定されているかに応じて、TextWindow オブジェクトまたは HTMLWindow オブジェクトを取得します。

Sub TextWindowExample(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 TextWindowExample(_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).");
}

参照

参照

TextWindow メンバ

EnvDTE 名前空間