ListTemplate 属性

       

返回一个 ListTemplate 对象,该对象代表指定的 StyleListFormat 对象的列表格式。

expression.ListTemplate

expression   必需。该表达式返回“应用于”列表中的一个对象。

说明

一个列表模板包含定义特定列表的所有格式设置。“项目符号和编号”对话框(“格式”菜单)的每个选项卡的七种格式选项中的每一种(不包括“无”选项)都对应于一个列表模板。文档和模板同样可以包含列表模板的集合。

如果 ListFormat 对象的区域的第一段没有设为列表格式,则 ListTemplate 属性返回 Nothing

示例

本示例查看活动文档的第二段所用的列表模板,然后将该列表模板应用到选定内容。

Set myltemp = ActiveDocument.Paragraphs(2).Range. _
    ListFormat.ListTemplate
Selection.Range.ListFormat.ApplyListTemplate ListTemplate:=myltemp