Freigeben über


IEditorOptions.ClearOptionValue Method

Definition

Overloads

ClearOptionValue(String)

Clear the locally-defined value for the given option.

ClearOptionValue<T>(EditorOptionKey<T>)

Clear the locally-defined value for the given option.

ClearOptionValue(String)

Clear the locally-defined value for the given option.

public:
 bool ClearOptionValue(System::String ^ optionId);
public:
 bool ClearOptionValue(Platform::String ^ optionId);
bool ClearOptionValue(std::wstring const & optionId);
public bool ClearOptionValue (string optionId);
abstract member ClearOptionValue : string -> bool
Public Function ClearOptionValue (optionId As String) As Boolean

Parameters

optionId
String

The ID of the option.

Returns

true if the option was defined locally and cleared.

Applies to

ClearOptionValue<T>(EditorOptionKey<T>)

Clear the locally-defined value for the given option.

public:
generic <typename T>
 bool ClearOptionValue(Microsoft::VisualStudio::Text::Editor::EditorOptionKey<T> key);
template <typename T>
 bool ClearOptionValue(Microsoft::VisualStudio::Text::Editor::EditorOptionKey<T> key);
public bool ClearOptionValue<T> (Microsoft.VisualStudio.Text.Editor.EditorOptionKey<T> key);
abstract member ClearOptionValue : Microsoft.VisualStudio.Text.Editor.EditorOptionKey<'T> -> bool
Public Function ClearOptionValue(Of T) (key As EditorOptionKey(Of T)) As Boolean

Type Parameters

T

The type of the value.

Parameters

key
EditorOptionKey<T>

The key of the option.

Returns

true if the option was defined locally and cleared.

Applies to