IEditorOptions.IsOptionDefined<T> Method (EditorOptionKey<T>, Boolean)

Determines whether the specified editor option is defined.

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

bool IsOptionDefined<T>(
	EditorOptionKey<T> key,
	bool localScopeOnly
)

Type Parameters

T

The type of the key.

Parameters

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

The key of the option.

localScopeOnly
Type: System.Boolean

true to search only in this scope, false to try parent scopes as well. This setting has no effect if the current scope is global.

Return Value

Type: System.Boolean
true if the option is defined, otherwise false.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft