ListFormat.SingleListTemplate 属性 (Word)
如此 如果整个 ListFormat 对象使用相同的列表模板。 只读 Boolean。
语法
expression. SingleListTemplate
表达式是必需的。 一个代表“ListFormat”对象的变量。
示例
以下示例检查所选内容是否只使用了一种列表模板。 如果是,则本示例将第二个编号列表模板应用于所选内容。
Set myList = Selection.Range.ListFormat
temp = myList.SingleListTemplate
If temp = True Then
myList.ApplyListTemplate _
ListTemplate:=ListGalleries(wdNumberGallery) _
.ListTemplates(2)
End If
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。