IEditorFormatMapService 接口

查找给定视图角色的格式图。

命名空间:  Microsoft.VisualStudio.Text.Classification
程序集:  Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)

语法

声明
Public Interface IEditorFormatMapService
public interface IEditorFormatMapService
public interface class IEditorFormatMapService
type IEditorFormatMapService =  interface end
public interface IEditorFormatMapService

方法

  名称 说明
公共方法 GetEditorFormatMap(String) 获取给定外观类别的 IEditorFormatMap
公共方法 GetEditorFormatMap(ITextView) 获取适合给定文本视图的 IEditorFormatMap。此对象可能由几个文本视图共享。

页首

备注

这是 MEF 组件部件,应导入如下所示:

[Import]
internal IEditorFormatMapService editorMaps = null;

示例

有关的示例演示如何使用此服务,请参见 演练:自定义文本视图

请参阅

参考

Microsoft.VisualStudio.Text.Classification 命名空间