如果为 True,则整个 List 或者 ListFormat 对象将使用相同的列表模板。Boolean 类型,只读。
expression.SingleListTemplate
expression 必需。该表达式返回“应用于”列表中的一个对象。
本示例检查所选内容是否只使用了一种列表模板。如果是,则本示例将第二个编号列表模板应用于所选内容。
Set myList = Selection.Range.ListFormat
temp = myList.SingleListTemplate
If temp = True Then
myList.ApplyListTemplate _
ListTemplate:=ListGalleries(wdNumberGallery) _
.ListTemplates(2)
End If