CodeWindowManager::OnNewView Method (IVsTextView^)

 

Called when a new text view is created.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int OnNewView(
	IVsTextView^ newView
)

Parameters

newView
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextView^

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: