Condividi tramite


EditorOptionDefinition.IsApplicableToScope Method

Determines whether this option is applicable for the given scope (for example, a text buffer).

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

Syntax

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

Parameters

Return Value

Type: System.Boolean
true if the option is applicable to the scope, otherwise false.

Remarks

The default implementation returns true. This method will not be called for the global scope. Every option is valid by definition in the global scope.

.NET Framework Security

See Also

Reference

EditorOptionDefinition Class

Microsoft.VisualStudio.Text.Editor Namespace