CodeWindowManager.OnNewView Method

Called when a new text view is created.

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

Syntax

'Declaration
Public Overridable Function OnNewView ( _
    newView As IVsTextView _
) As Integer
public virtual int OnNewView(
    IVsTextView newView
)
public:
virtual int OnNewView(
    IVsTextView^ newView
)
abstract OnNewView : 
        newView:IVsTextView -> int 
override OnNewView : 
        newView:IVsTextView -> int 
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.

.NET Framework Security

See Also

Reference

CodeWindowManager Class

Microsoft.VisualStudio.Package Namespace