Partager via


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)

Syntax

'Déclaration
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

  • 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.

.NET Framework Security

See Also

Reference

IEditorOptions Interface

IsOptionDefined Overload

Microsoft.VisualStudio.Text.Editor Namespace