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)

public virtual bool IsApplicableToScope(
	IPropertyOwner scope
)

Return Value

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

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft