Freigeben über


EditorOptionDefinition.IsApplicableToScope-Methode

Bestimmt, ob diese Option für den angegebenen Bereich anwendbar ist (z. B. einen Textpuffer).

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

Syntax

'Declaration
Public Overridable Function IsApplicableToScope ( _
    scope As IPropertyOwner _
) As Boolean
public virtual bool IsApplicableToScope(
    IPropertyOwner scope
)
public:
virtual bool IsApplicableToScope(
    IPropertyOwner^ scope
)
abstract IsApplicableToScope : 
        scope:IPropertyOwner -> bool  
override IsApplicableToScope : 
        scope:IPropertyOwner -> bool
public function IsApplicableToScope(
    scope : IPropertyOwner
) : boolean

Parameter

Rückgabewert

Typ: Boolean
true , wenn die Option zum Bereich anwendbar ist, andernfalls false.

Hinweise

Die Standardimplementierung gibt true zurück. Diese Methode ist nicht für den globalen Bereich bezeichnet. Jede Option ist definitionsgemäß im globalen Gültigkeitsbereich gültig.

.NET Framework-Sicherheit

Siehe auch

Referenz

EditorOptionDefinition Klasse

Microsoft.VisualStudio.Text.Editor-Namespace