CodeWindowManager.GetFilter Method

Returns the ViewFilter object associated with the specified text view.

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 Function GetFilter ( _
    view As IVsTextView _
) As ViewFilter
public ViewFilter GetFilter(
    IVsTextView view
)
public:
ViewFilter^ GetFilter(
    IVsTextView^ view
)
member GetFilter : 
        view:IVsTextView -> ViewFilter
public function GetFilter(
    view : IVsTextView
) : ViewFilter

Parameters

Return Value

Type: Microsoft.VisualStudio.Package.ViewFilter
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.

.NET Framework Security

See Also

Reference

CodeWindowManager Class

Microsoft.VisualStudio.Package Namespace