Freigeben über


WindowSearchBooleanOption Constructors

Definition

Overloads

WindowSearchBooleanOption(String, String, Boolean)

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

WindowSearchBooleanOption(String, String, Func<Boolean>, Action<Boolean>)

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

WindowSearchBooleanOption(String, String, Boolean)

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

public:
 WindowSearchBooleanOption(System::String ^ displayText, System::String ^ tooltip, bool initialValue);
public:
 WindowSearchBooleanOption(Platform::String ^ displayText, Platform::String ^ tooltip, bool initialValue);
 WindowSearchBooleanOption(std::wstring const & displayText, std::wstring const & tooltip, bool initialValue);
public WindowSearchBooleanOption (string displayText, string tooltip, bool initialValue);
new Microsoft.VisualStudio.PlatformUI.WindowSearchBooleanOption : string * string * bool -> Microsoft.VisualStudio.PlatformUI.WindowSearchBooleanOption
Public Sub New (displayText As String, tooltip As String, initialValue As Boolean)

Parameters

displayText
String

The display text for the search option.

tooltip
String

The tooltip text for the search option.

initialValue
Boolean

The initial value to return for the search option.

Applies to

WindowSearchBooleanOption(String, String, Func<Boolean>, Action<Boolean>)

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

public:
 WindowSearchBooleanOption(System::String ^ displayText, System::String ^ tooltip, Func<bool> ^ getter, Action<bool> ^ setter);
public WindowSearchBooleanOption (string displayText, string tooltip, Func<bool> getter, Action<bool> setter);
new Microsoft.VisualStudio.PlatformUI.WindowSearchBooleanOption : string * string * Func<bool> * Action<bool> -> Microsoft.VisualStudio.PlatformUI.WindowSearchBooleanOption
Public Sub New (displayText As String, tooltip As String, getter As Func(Of Boolean), setter As Action(Of Boolean))

Parameters

displayText
String

The display text for the search option.

tooltip
String

The tooltip text for the search option.

getter
Func<Boolean>

The function which performs the option action and gets the option value. Must return a Boolean value.

setter
Action<Boolean>

The function which performs the option action.

Applies to