Word) (ListFormat.ListTemplate 屬性

會傳回 ListTemplate 物件,代表所指定的 ListFormat 物件的格式設定清單。

語法

expression. ListTemplate

需要 expression。 代表 'ListFormat' 物件的變數。

註解

A list template includes all the formatting that defines a particular list. Each of the seven formats (excluding None) found on each of the tabs in the Bullets and Numbering dialog box corresponds to a list template. Documents and templates can also contain collections of list templates.

如果 ListFormat 物件範圍中的第一個段落並未格式化成清單,則 ListTemplate 屬性會傳回 Nothing

範例

本範例會查看使用中文件內第二個段落所用的清單範本為何,然後會將該清單範本套用到選取範圍。

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

另請參閱

ListFormat 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應