表示获取指定范围或全局范围的 IEditorOptions 的服务。
命名空间: Microsoft.VisualStudio.Text.Editor
程序集: Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)
语法
声明
Public Interface IEditorOptionsFactoryService
public interface IEditorOptionsFactoryService
public interface class IEditorOptionsFactoryService
type IEditorOptionsFactoryService = interface end
public interface IEditorOptionsFactoryService
IEditorOptionsFactoryService 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
GlobalOptions | 获取全局 IEditorOptions。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
CreateOptions | 创建未绑定到任何特定范围的 IEditorOptions 新实例。 |
![]() |
GetOptions | 获取 IPropertyOwner 的 IEditorOptions。缓冲区和视图是属性所有者。如果以前未创建任何选项,则在范围内创建新选项。 |
页首
备注
这是 MEF 组件部件,应导入如下所示:
[Import] IEditorOptionsFactoryService factory = null;