IEditorOptions::SetOptionValue<T> Method (EditorOptionKey<T>, T)

 

Sets the value of the specified option in the current scope.

Namespace:   Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

generic<typename T>
void SetOptionValue(
	EditorOptionKey<T> key,
	T value
)

Parameters

key
Type: Microsoft.VisualStudio.Text.Editor::EditorOptionKey<T>

The key of the option.

value
Type: T

The new value of the option.

Type Parameters

T

The type of the key.

If the given option is not applicable in the current scope, it attempts to set the option in the global scope.

Return to top
Show: