EditorOptionDefinition.IsApplicableToScope(IPropertyOwner) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- scope
- IPropertyOwner
The IPropertyOwner.
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.