IVsCodeWindowManager.OnNewView(IVsTextView) Method

Definition

Called by the core editor to notify a language that a new view was created.

public:
 int OnNewView(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pView);
public:
 int OnNewView(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pView);
int OnNewView(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & pView);
public int OnNewView (Microsoft.VisualStudio.TextManager.Interop.IVsTextView pView);
abstract member OnNewView : Microsoft.VisualStudio.TextManager.Interop.IVsTextView -> int
Public Function OnNewView (pView As IVsTextView) As Integer

Parameters

pView
IVsTextView

[in] The IVsTextView object for the new view.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsCodeWindowManager::OnNewView(  
   [in] IVsTextView *pView  
);  

Use this notification to add a filter to the view when it is created. For more information, see Intercepting Legacy Language Service Commands.

Applies to