CodeWindowManager.OnNewView(IVsTextView) Méthode

Définition

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

Int32

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 .

S’applique à