ITextParagraphPropertiesFactoryService 接口

创建在对视图上的行设置格式时使用的 TextParagraphProperties 类。

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

语法

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

ITextParagraphPropertiesFactoryService 类型公开以下成员。

方法

  名称 说明
公共方法 Create 为提供的配置创建 TextParagraphProperties

页首

备注

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

[Import] ITextFormattingParagraphPropertiesFactoryService factory = null;

此元素是内容类型特定的。 如果实现该内容类型的此工厂服务,应说明导出与一个或多 ContentTypeAttribute 属性。

请参阅

参考

Microsoft.VisualStudio.Text.Formatting 命名空间