EditorOptionDefinition::IsApplicableToScope Method (IPropertyOwner^)

 

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: System::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.

Return to top
Show: