다음을 통해 공유


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

‘선언
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
)
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

CodeWindowManager Members

Microsoft.VisualStudio.Package Namespace