Partager via


TextWindow, interface

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

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

Syntaxe

'Déclaration
<GuidAttribute("2FC54DC9-922B-44EB-8CC0-BA182584DC4B")> _
Public Interface TextWindow
[GuidAttribute("2FC54DC9-922B-44EB-8CC0-BA182584DC4B")]
public interface TextWindow
[GuidAttribute(L"2FC54DC9-922B-44EB-8CC0-BA182584DC4B")]
public interface class TextWindow
[<GuidAttribute("2FC54DC9-922B-44EB-8CC0-BA182584DC4B")>]
type TextWindow =  interface end
public interface TextWindow

Le type TextWindow expose les membres suivants.

Propriétés

  Nom Description
Propriété publique ActivePane Obtient le volet actif le plus récent dans la fenêtre de texte.
Propriété publique DTE Obtient l'objet d'extensibilité de niveau supérieur.
Propriété publique Panes Obtient la collection de volets de l'objet TextWindow.
Propriété publique Parent Obtient l'objet parent immédiat d'un objet TextWindow.
Propriété publique Selection Obtient un objet représentant la sélection actuelle sur l'objet TextWindow.

Début

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

EnvDTE, espace de noms