Partilhar via


EditorOptionDefinition.IsApplicableToScope(IPropertyOwner) Method

Definition

Determines whether this option is applicable for the given scope (for example, a text buffer). The default implementation returns true. An option, by default, is applicable to any scope.

public:
 virtual bool IsApplicableToScope(Microsoft::VisualStudio::Utilities::IPropertyOwner ^ scope);
public:
 virtual bool IsApplicableToScope(Microsoft::VisualStudio::Utilities::IPropertyOwner ^ scope);
 virtual bool IsApplicableToScope(Microsoft::VisualStudio::Utilities::IPropertyOwner const & scope);
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

This method will not be called for the global scope. Every option is valid by definition in the global scope.

Applies to