IEditorOptionsFactoryService.GetOptions(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.
Gets the IEditorOptions for the IPropertyOwner. Buffers and views are property owners. Creates new options for the scope if none have previously been created.
public:
Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ GetOptions(Microsoft::VisualStudio::Utilities::IPropertyOwner ^ scope);
public:
Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ GetOptions(Microsoft::VisualStudio::Utilities::IPropertyOwner ^ scope);
Microsoft::VisualStudio::Text::Editor::IEditorOptions GetOptions(Microsoft::VisualStudio::Utilities::IPropertyOwner const & scope);
public Microsoft.VisualStudio.Text.Editor.IEditorOptions GetOptions (Microsoft.VisualStudio.Utilities.IPropertyOwner scope);
abstract member GetOptions : Microsoft.VisualStudio.Utilities.IPropertyOwner -> Microsoft.VisualStudio.Text.Editor.IEditorOptions
Public Function GetOptions (scope As IPropertyOwner) As IEditorOptions
Parameters
- scope
- IPropertyOwner
The IPropertyOwner.
Returns
The IEditorOptions for the given IPropertyOwner.
Remarks
This method returns a set of options for a given scope. Options defined in this scope will not affect options in its ancestor scopes. If you try to get an option in this scope, the method checks for any overridden values in the scope. If there are none, it gets the value from the options of its parent scope. The set of applicable options may change depending on the scope. An option defined in a text view scope will not apply to text buffers.