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 支持和反馈,获取有关如何接收支持和提供反馈的指南。