WindowSearchCustomFilter WindowSearchCustomFilter WindowSearchCustomFilter WindowSearchCustomFilter WindowSearchCustomFilter Class

Definition

Represents a base class from which users can derive classes to implement advanced search filters for use by the search control for window search.

public ref class WindowSearchCustomFilter : Microsoft::VisualStudio::PlatformUI::WindowSearchFilter, Microsoft::VisualStudio::Shell::Interop::IVsWindowSearchCustomFilter
[Windows::Foundation::Metadata::WebHostHidden]
class WindowSearchCustomFilter : Microsoft::VisualStudio::PlatformUI::WindowSearchFilter, Microsoft::VisualStudio::Shell::Interop::IVsWindowSearchCustomFilter
public class WindowSearchCustomFilter : Microsoft.VisualStudio.PlatformUI.WindowSearchFilter, Microsoft.VisualStudio.Shell.Interop.IVsWindowSearchCustomFilter
type WindowSearchCustomFilter = class
    inherit WindowSearchFilter
    interface IVsWindowSearchCustomFilter
    interface IVsWindowSearchFilter
Public Class WindowSearchCustomFilter
Inherits WindowSearchFilter
Implements IVsWindowSearchCustomFilter
Inheritance
WindowSearchCustomFilterWindowSearchCustomFilterWindowSearchCustomFilterWindowSearchCustomFilterWindowSearchCustomFilter
Implements

Remarks

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.

Constructors

WindowSearchCustomFilter(String, String) WindowSearchCustomFilter(String, String) WindowSearchCustomFilter(String, String) WindowSearchCustomFilter(String, String) 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.

Methods

ApplyFilter(String, Int32, Int32) ApplyFilter(String, Int32, Int32) ApplyFilter(String, Int32, Int32) ApplyFilter(String, Int32, Int32) 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.

Properties

DisplayText DisplayText DisplayText DisplayText DisplayText

Gets or sets the display text for the search filter

(Inherited from WindowSearchFilter)
Tooltip Tooltip Tooltip Tooltip Tooltip

Gets or sets the tooltip text for the search filter

(Inherited from WindowSearchFilter)

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to