IClassificationFormatMapService 接口

查找给定视图的分类格式图。

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

语法

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

方法

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

页首

备注

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

[Import] IClassificationFormatMapService formatMap = null;

请参阅

参考

Microsoft.VisualStudio.Text.Classification 命名空间