Delen via


ViewFilter Constructor

Initializes a new instance of the ViewFilter class.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.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 Sub New ( _
    mgr As CodeWindowManager, _
    view As IVsTextView _
)
public ViewFilter(
    CodeWindowManager mgr,
    IVsTextView view
)
public:
ViewFilter(
    CodeWindowManager^ mgr, 
    IVsTextView^ view
)
new : 
        mgr:CodeWindowManager * 
        view:IVsTextView -> ViewFilter
public function ViewFilter(
    mgr : CodeWindowManager, 
    view : IVsTextView
)

Parameters

Remarks

A new instance of the ViewFilter class is created in the CreateViewFilter method in the LanguageService class.

This constructor attaches this instantiation, as an IVsTextViewFilter interface, to the given view. The constructor also connects to the view to listen to view events as an IVsTextViewEvents interface. In addition, the constructor obtains and stores the Source object from the CodeWindowManager object.

.NET Framework Security

See Also

Reference

ViewFilter Class

Microsoft.VisualStudio.Package Namespace