IVsWindowSearch Interface
Implemented by a window that wants to have searchable content. The search host will call this interface to initiate the search or obtain search options. When the interface is implemented by a tool window on the IVsWindowPane class or on VSFPROPID_ViewHelper, it will be called by shell on SearchEnabled to check if the search is enabled for the tool window. The shell will automatically set up a search host associated with the window, using the default placement for the search control in the shell frame/toolbar area.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
| Name | Description | |
|---|---|---|
![]() | Category | Gets the GUID of the search provider. For a tool window search provider, if the category is not returned the tool window guid will be used by default. |
![]() | SearchEnabled | Determines whether the search should be enabled for the window. |
![]() | SearchFiltersEnum | Returns an interface that can be used to enumerate search filters. |
![]() | SearchOptionsEnum | Allows the window search host to obtain overridable search options. |
| Name | Description | |
|---|---|---|
![]() | ClearSearch() | Clears the search result, for example, after the user has cleared the content of the search edit box. |
![]() | CreateSearch(UInt32, IVsSearchQuery, IVsSearchCallback) | Creates a new search task object. The task is cold-started - Start() needs to be called on the task object to begin the search. |
![]() | OnNavigationKeyDown(UInt32, UInt32) | Allows the window to preview some keydown events that can be used to navigate between the search results or take action on them |
![]() | ProvideSearchSettings(IVsUIDataSource) | Allows the window search host to obtain overridable search options. |
For an example, see Adding Search to a Tool Window.

