WindowSearchCommandOption Class

Definition

Represents a command option for use by the search control for window search.

C++/WinRT
[Windows::Foundation::Metadata::WebHostHidden]
class WindowSearchCommandOption : Microsoft::VisualStudio::PlatformUI::WindowSearchOption, Microsoft::VisualStudio::Shell::Interop::IVsWindowSearchCommandOption
Inheritance
WindowSearchCommandOption
Implements

Remarks

Command options are represented by push buttons in the search control’s popup. Invoke method is called when the corresponding command push button is pressed.

Constructors

WindowSearchCommandOption(String, String, Action)

Creates a new instance of a command option for use by the search control for window search.

Properties

DisplayText

Gets or sets the display text for the search option.

(Inherited from WindowSearchOption)
Tooltip

Gets or sets the tooltip for the search option.

(Inherited from WindowSearchOption)

Methods

Invoke()

Invokes the specified command function. Invoke is called when the corresponding command push button is pressed.

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022