WindowSearchCustomFilter Class
Represents a base class from which users can derive classes to implement advanced search filters for use by the search control for window search.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
Microsoft.VisualStudio.PlatformUI.WindowSearchFilter
Microsoft.VisualStudio.PlatformUI.WindowSearchCustomFilter
| Name | Description | |
|---|---|---|
![]() | WindowSearchCustomFilter(String, String) | Creates a new instance of a search filter with an apply-filter method for use by the search control for window search. |
| Name | Description | |
|---|---|---|
![]() | DisplayText | Gets or sets the display text for the search filter(Inherited from WindowSearchFilter.) |
![]() | Tooltip | Gets or sets the tooltip text for the search filter(Inherited from WindowSearchFilter.) |
| Name | Description | |
|---|---|---|
![]() | ApplyFilter(String, Int32, Int32) | Override this method in derived classes to provide specific implementation for the custom filter, by manipulating the search text from the search control and changing the selection as needed. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Search filters appear as push buttons in the search control’s popup.
Simple filters such as those implemented by WindowSearchSimpleFilter automatically append the filter token (FilterField:DefaultFilterValue) to the search control text.
This class is used to implement advanced filtering of the search control text, since the user has full control over the search field and the selection to be set in the search control after the filter is applied.
Custom filters are used to avoid adding multiple filter tokens with the same field. Custom filters are also used to select the filter value if the caret position in the search control is already within a filter token.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


