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
- scope
Type: Microsoft.VisualStudio.Utilities.IPropertyOwner
The IPropertyOwner.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.