Partager via


IEditorOptions.IsOptionDefined Method (String, Boolean)

Determines whether the specified option is defined.

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

Syntax

'Déclaration
Function IsOptionDefined ( _
    optionId As String, _
    localScopeOnly As Boolean _
) As Boolean
bool IsOptionDefined(
    string optionId,
    bool localScopeOnly
)
bool IsOptionDefined(
    String^ optionId, 
    bool localScopeOnly
)
abstract IsOptionDefined : 
        optionId:string * 
        localScopeOnly:bool -> bool 
function IsOptionDefined(
    optionId : String, 
    localScopeOnly : boolean
) : boolean

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