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)

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

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.

Type Parameters

T

The type of the key.

Return to top
Show: