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
'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
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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.