Sdílet prostřednictvím


ViewFilter(CodeWindowManager, IVsTextView) Constructor

Definition

Initializes a new instance of the ViewFilter class.

public:
 ViewFilter(Microsoft::VisualStudio::Package::CodeWindowManager ^ mgr, Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view);
 ViewFilter(Microsoft::VisualStudio::Package::CodeWindowManager const & mgr, Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & view);
public ViewFilter (Microsoft.VisualStudio.Package.CodeWindowManager mgr, Microsoft.VisualStudio.TextManager.Interop.IVsTextView view);
new Microsoft.VisualStudio.Package.ViewFilter : Microsoft.VisualStudio.Package.CodeWindowManager * Microsoft.VisualStudio.TextManager.Interop.IVsTextView -> Microsoft.VisualStudio.Package.ViewFilter
Public Sub New (mgr As CodeWindowManager, view As IVsTextView)

Parameters

mgr
CodeWindowManager

[in] A CodeWindowManager object that owns this view. This is required and cannot be a null value.

view
IVsTextView

[in] An IVsTextView object this class is to work with. This is required and cannot be a null value.

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.

Applies to