ParagraphFormat.ListBulletText 属性 (Publisher)
返回一个代表来自指定段落的列表项目符号文本的 字符串 。 此为只读属性。
语法
表达式。ListBulletText
表达 一个代表 ParagraphFormat 对象的变量。
返回值
String
备注
ListBulletText 属性被限制为一个字符。
此属性是只读的。 若要设置项目符号列表的 ListBulletText 属性,请使用 SetListType 方法。
如果列表不是项目符号列表,则返回消息“访问被拒绝”。
示例
此示例测试列表类型为项目符号列表。 如果是,则会进行测试,以查看列表项目符号文本是否设置为 "*"
。 否则, 将调用 SetListType 方法,并将 pbListTypeBullet 作为 Value (PbListType) 参数和 "*"
BulletText 参数传递。
Dim objParaForm As ParagraphFormat
Set objParaForm = ActiveDocument.Pages(1).Shapes(1) _
.TextFrame.TextRange.ParagraphFormat
With objParaForm
If .ListType = pbListTypeBullet Then
If Not .ListBulletText = "*" Then
.SetListType pbListTypeBullet, "*"
End If
End If
End With
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈