IEditorOptionsFactoryService.GetOptions(IPropertyOwner) 方法

定义

获取 IEditorOptionsIPropertyOwner。 缓冲区和视图是属性所有者。 如果以前未创建任何选项,则为范围创建新选项。

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

参数

返回

IEditorOptions

给定 IPropertyOwnerIEditorOptions

注解

此方法为给定范围返回一组选项。 在此作用域中定义的选项不会影响其祖先作用域中的选项。 如果尝试在此范围中获取一个选项,则该方法将检查范围中是否有任何重写的值。 如果没有,则从其父作用域的选项获取值。 适用选项集可能会随范围而发生变化。 在文本视图范围中定义的选项将不适用于文本缓冲区。

适用于