Determines whether the specified editor option is defined.
Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaration
Function IsOptionDefined(Of T) ( _
    key As EditorOptionKey(Of T), _
    localScopeOnly As Boolean _
) As Boolean
bool IsOptionDefined<T>(
    EditorOptionKey<T> key,
    bool localScopeOnly
)
generic<typename T>
bool IsOptionDefined(
    EditorOptionKey<T> key, 
    bool localScopeOnly
)
abstract IsOptionDefined : 
        key:EditorOptionKey<'T> * 
        localScopeOnly:bool -> bool
JScript does not support generic types or methods.
Type Parameters
- T
The type of the key. 
Parameters
key
Type: Microsoft.VisualStudio.Text.Editor.EditorOptionKey<T>The key of the option.
localScopeOnly
Type: Booleantrue 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: Boolean
true if the option is defined, otherwise false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.