Compartilhar via


WindowSearchSimpleFilter Class

Represents a search filter with a default value and a filter field for use by the search control for window search.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.PlatformUI.WindowSearchFilter
    Microsoft.VisualStudio.PlatformUI.WindowSearchSimpleFilter

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaração
Public NotInheritable Class WindowSearchSimpleFilter _
    Inherits WindowSearchFilter _
    Implements IVsWindowSearchSimpleFilter, IVsWindowSearchFilter
public sealed class WindowSearchSimpleFilter : WindowSearchFilter, 
    IVsWindowSearchSimpleFilter, IVsWindowSearchFilter

The WindowSearchSimpleFilter type exposes the following members.

Constructors

  Name Description
Public method WindowSearchSimpleFilter Creates a new instance of a search filter with a default value and a filter field for use by the search control for window search.

Top

Properties

  Name Description
Public property DefaultFilterValue Gets or sets the default filter value for the search filter.
Public property DisplayText Gets or sets the display text for the search filter (Inherited from WindowSearchFilter.)
Public property FilterField Gets or sets the filter field value for the search filter.
Public property Tooltip Gets or sets the tooltip text for the search filter (Inherited from WindowSearchFilter.)

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

Search control filters are represented as push buttons in the search control’s popup. When a WindowSearchSimpleFilter button is pressed, the “FilterField:DefaultFilterValue” string is automatically added to the search control search text.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.PlatformUI Namespace