CodeWindowManager.OnNewView(IVsTextView) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Appelé lorsqu'un nouvel affichage de texte est créé.
public:
virtual int OnNewView(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ newView);
public:
virtual int OnNewView(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ newView);
virtual int OnNewView(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & newView);
public virtual int OnNewView (Microsoft.VisualStudio.TextManager.Interop.IVsTextView newView);
abstract member OnNewView : Microsoft.VisualStudio.TextManager.Interop.IVsTextView -> int
override this.OnNewView : Microsoft.VisualStudio.TextManager.Interop.IVsTextView -> int
Public Overridable Function OnNewView (newView As IVsTextView) As Integer
Paramètres
- newView
- IVsTextView
[in] Objet IVsTextView représentant la nouvelle vue de texte.
Retours
En cas de réussite, retourne S_OK , sinon, retourne un code d'erreur.
Implémente
Remarques
La méthode de base appelle CreateViewFilter pour créer un filtre de commande pour l’affichage de texte, puis ajoute le filtre à une liste interne de filtres.
Dans l’implémentation de l’infrastructure de package managée par défaut, cette méthode est appelée à partir de AddAdornments .