Partager via


TextWindow, interface

Mise à jour : novembre 2007

Représente une fenêtre contenant un document texte.

Espace de noms :  EnvDTE
Assembly :  EnvDTE (dans EnvDTE.dll)

Syntaxe

<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

Notes

L'objet TextWindow est retourné par la propriété Object de l'objet Window lorsque la fenêtre est une fenêtre de l'éditeur principale. Lorsque le document situé dans la fenêtre est un document HTML, en fonction du mode d'affichage Design ou HTML, vous obtenez un objet HTMLWindow ou TextWindow.

Exemples

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

Voir aussi

Référence

Membres TextWindow

EnvDTE, espace de noms