EditorOptionDefinition.IsApplicableToScope(IPropertyOwner) EditorOptionDefinition.IsApplicableToScope(IPropertyOwner) EditorOptionDefinition.IsApplicableToScope(IPropertyOwner) Method

Definition

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

public virtual bool IsApplicableToScope (Microsoft.VisualStudio.Utilities.IPropertyOwner scope);
abstract member IsApplicableToScope : Microsoft.VisualStudio.Utilities.IPropertyOwner -> bool
override this.IsApplicableToScope : Microsoft.VisualStudio.Utilities.IPropertyOwner -> bool
Public Overridable Function IsApplicableToScope (scope As IPropertyOwner) As Boolean
Parameters
Returns

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.

Applies to