SetOptionValue Method (String, Object)
Collapse the table of content
Expand the table of content

IEditorOptions.SetOptionValue Method (String, Object)


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)

void SetOptionValue(
	string optionId,
	object value


Type: System.String

The ID of the option.

Type: System.Object

The new value of the option.

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

Return to top
© 2016 Microsoft