Freigeben über


IEditorOptions.IsOptionDefined-Methode (String, Boolean)

Bestimmt, ob die angegebene Option definiert ist.

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

Syntax

'Declaration
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

Parameter

  • optionId
    Typ: String

    Die ID der Option.

  • localScopeOnly
    Typ: Boolean

    true, um nur in diesem Bereich zu suchen, false, um auch übergeordnete Bereiche einzubeziehen. Diese Einstellung hat keine Auswirkungen, wenn der aktuelle Bereich global ist.

Rückgabewert

Typ: Boolean
true , wenn die Option definiert ist, andernfalls false.

.NET Framework-Sicherheit

Siehe auch

Referenz

IEditorOptions Schnittstelle

IsOptionDefined-Überladung

Microsoft.VisualStudio.Text.Editor-Namespace