다음을 통해 공유


CodeWindowManager.OnNewView Method

Called when a new text view is created.

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

Syntax

‘선언
Public Overridable Function OnNewView ( _
    newView As IVsTextView _
) As Integer
public virtual int OnNewView(
    IVsTextView newView
)

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