次の方法で共有


CodeWindowManager.OnNewView(IVsTextView) Method

Definition

Install a new view filter for the given view. This method calls your CreateViewFilter method.

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

Parameters

newView
IVsTextView

[in] The IVsTextView object representing the new text view.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Implements

Remarks

The base method calls CreateViewFilter to create a new command filter for the text view and then adds the filter to an internal list of filters.

In the default managed package framework implementation, this method is called from AddAdornments.

Applies to