ListTemplate 接口

定义

代表单个列表模板,其中包含用于定义列表的所有格式。

public interface class ListTemplate
[System.Runtime.InteropServices.Guid("0002098F-0000-0000-C000-000000000046")]
public interface ListTemplate
type ListTemplate = interface
Public Interface ListTemplate
属性

注解

ListTemplate 对象是 集合的成员ListTemplates。 “项目符号和编号”对话框中有三张选项卡,每张选项卡上提供七种格式(不包括“无”),其中每种格式都对应一个列表模板对象。 可以从集合中的ListGalleriesListGallery个对象访问这些预定义列表模板。 文档和模板也可以包含列表模板的集合。

使用 ListTemplates (index) (其中 index 是一个介于 1 到 7 的数字)从列表库返回单个列表模板。

注意:某些属性和方法( Convert(Object)Add(Object, Object)例如)不适用于从列表库访问的列表模板。 您可以修改这些列表模板,但不能改变它们的列表库类型(wdBulletGallerywdNumberGallerywdOutlineNumberGallery)。

Add(Object, Object)使用 方法将列表模板添加到文档或模板中的列表模板集合。

若要查看指定的列表模板是否包含 Microsoft Word内置的格式,请将 属性与 ListGallery 对象一起使用Modified[Int32]。 若要将格式重置为原始列表格式,请使用 Reset(Int32)ListGallery 对象的 方法。

返回 ListTemplate 对象后,使用 ListLevels (index) (其中 index 是 1 到 9 的数字)返回单个 ListLevel 对象。 使用 ListLevel 对象,可以访问指定列表级别的所有格式设置属性,例如 Alignment、、FontNumberFormatNumberPositionNumberStyleTrailingCharacter

Convert(Object)使用 方法可将多级列表模板转换为单级模板。

属性

Application

返回一个 Application 对象,该对象代表 Microsoft Word 应用程序。

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。

ListLevels

返回一个 ListLevels 集合,该集合代表指定 ListTemplate的所有级别。

Name

返回或设置指定对象的名称。

OutlineNumbered

如此 如果 指定的 ListTemplate 对象是大纲编号。

Parent

返回一个对象,代表指定对象的父对象。

方法

Convert(Object)

将多级列表转换为单级列表,或将单级列表转换为多级列表。

适用于