Share via


CodeWindowManager.OnNewView Method

Called when a new text view is created.

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

Syntax

Public Overridable Function OnNewView ( _
    newView As IVsTextView _
) As Integer

Dim instance As CodeWindowManager
Dim newView As IVsTextView
Dim returnValue As Integer

returnValue = instance.OnNewView(newView)
public virtual int OnNewView(
    IVsTextView newView
)
public:
virtual int OnNewView(
    IVsTextView^ newView
)
public function OnNewView(
    newView : IVsTextView
) : int

Parameters

Return Value

Type: System.Int32

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

Implements

IVsCodeWindowManager.OnNewView(IVsTextView)

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.

Permissions

See Also

Reference

CodeWindowManager Class

CodeWindowManager Members

Microsoft.VisualStudio.Package Namespace