Table of contents
TOC
折叠目录
展开目录

ParagraphFormat.ListBulletText 属性 (发布服务器)ParagraphFormat.ListBulletText Property (Publisher)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回一个代表来自指定段落的列表项目符号文本的字符串。只读的。Returns a String representing the list bullet text from the specified paragraphs. Read-only.

语法Syntax

表达式ListBulletTextexpression. ListBulletText

_expression_A 表示ParagraphFormat对象的变量。_expression_A variable that represents a ParagraphFormat object.

返回值Return Value

StringString

注解Remarks

ListBulletText属性被限制为一个字符。The ListBulletText property is limited to one character.

此属性是只读的。若要设置项目符号列表的ListBulletText属性,请使用SetListType方法。This property is read-only. To set the ListBulletText property of a bulleted list, use the SetListType method.

如果列表不是项目符号列表,则返回消息“访问被拒绝”。Returns an "Access Denied" message if the list is not a bulleted list.

示例Example

此示例测试列表类型为项目符号列表。如果是,是进行测试的列表项目符号文本设置为""。如果不是这样, **SetListType方法调用并作为 pbListType 参数传递pbListTypeBullet和""作为 BulletText 参数。This example tests to see if the list type is a bulleted list. If it is, a test is made to see that the list bullet text is set to "". If it is not, the **SetListType* method is called and passed pbListTypeBullet as the pbListType parameter and "*" as the BulletText parameter.

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 

© 2018 Microsoft