Share via


ListTemplates 接口

定义

对象的集合 ListTemplate ,这些对象表示“项目符号和编号”对话框中每个选项卡上的七种预定义列表格式。

public interface class ListTemplates : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020990-0000-0000-C000-000000000046")]
public interface ListTemplates : System.Collections.IEnumerable
type ListTemplates = interface
    interface IEnumerable
Public Interface ListTemplates
Implements IEnumerable
属性
实现

注解

ListTemplates使用 属性可返回 ListTemplates 集合。

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

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

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

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

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

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

属性

Application

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

Count

返回指定集合中的项数。

Creator

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

Item[Object]

返回集合中的单个对象。

Parent

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

方法

Add(Object, Object)

返回表示 ListTemplate 新列表模板的 对象。

GetEnumerator()

对象的集合 ListTemplate ,这些对象表示“项目符号和编号”对话框中每个选项卡上的七种预定义列表格式。

适用于