ParagraphFormat.ListType 属性 (Publisher)
从指定的 ParagraphFormat 对象返回 PbListType 常量。 此为只读属性。
语法
表达式。ListType
表达 一个代表 ParagraphFormat 对象的变量。
返回值
PbListType
备注
此属性为只读。 若要设置 ParagraphFormat 对象的 ListType 属性,请使用 SetListType 方法。
ListType 属性值可以是 Microsoft Publisher 类型库中声明的 PbListType 常量之一。
示例
此示例测试列表类型为编号的列表,特别是 pbListTypeArabic 。 如果将 ListType 属性设置为 pbListTypeArabic , ListNumberSeparator 属性值设置为 pbListSeparatorParenthesis 。
Dim objParaForm As ParagraphFormat
Set objParaForm = ActiveDocument.Pages(1).Shapes(1) _
.TextFrame.TextRange.ParagraphFormat
With objParaForm
If .ListType = pbListTypeArabic Then
.ListNumberSeparator = pbListSeparatorParenthesis
End If
End With
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈