Udostępnij za pośrednictwem


CodeWindowManager.GetFilter(IVsTextView) Method

Definition

Returns the ViewFilter for the given view or null if no matching filter is found.

public:
 Microsoft::VisualStudio::Package::ViewFilter ^ GetFilter(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view);
public Microsoft.VisualStudio.Package.ViewFilter GetFilter (Microsoft.VisualStudio.TextManager.Interop.IVsTextView view);
member this.GetFilter : Microsoft.VisualStudio.TextManager.Interop.IVsTextView -> Microsoft.VisualStudio.Package.ViewFilter
Public Function GetFilter (view As IVsTextView) As ViewFilter

Parameters

view
IVsTextView

[in] The IVsTextView object for which to retrieve the associated ViewFilter object.

Returns

If successful, returns a ViewFilter object; otherwise, returns a null value (the specified text view does not have a view filter in this language service).

Remarks

The base method searches the internal list of view filters to find the one that contains the specified text view.

Applies to