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 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈