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

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

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

设置或检索一个PbListSeparator常量,代表指定段落的列表分隔符。读/写。Sets or retrieves a PbListSeparator constant that represents the list separator of the specified paragraphs. Read/write.

语法Syntax

表达式ListNumberSeparatorexpression. ListNumberSeparator

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

返回值Return Value

PbListNumberSeparatorPbListNumberSeparator

注解Remarks

设置ListNumberSeparator属性之前,必须设置ListType属性为编号的列表类型。如果该列表不是编号的列表,则返回"拒绝访问"消息。You must set the ListType property to a numbered list type before you set the ListNumberSeparator property. Returns an "Access Denied" message if the list is not a numbered list.

ListNumberSeparator属性值可以是其中一个PbListSeparator常量。The ListNumberSeparator property value can be one of these PbListSeparator constants.

| pbListSeparatorColon| |pbListSeparatorDoubleHyphen| |pbListSeparatorDoubleParen| |pbListSeparatorDoubleSquare| |pbListSeparatorParenthesis| |pbListSeparatorPeriod| |pbListSeparatorPlain| |pbListSeparatorSquare| |pbListSeparatorWideComma|| pbListSeparatorColon| | pbListSeparatorDoubleHyphen| | pbListSeparatorDoubleParen| | pbListSeparatorDoubleSquare| | pbListSeparatorParenthesis| | pbListSeparatorPeriod| | pbListSeparatorPlain| | pbListSeparatorSquare| | pbListSeparatorWideComma|

示例Example

此示例测试列表类型为编号的列表,特别是pbListTypeArabic。如果将ListType属性设置为pbListTypeArabicListNumberSeparator属性设置为pbListSeparatorParenthesis。否则为调用SetListType方法并将其作为 pbListType 参数传递pbListTypeArabic ,之后可以将ListNumberSeparator属性设置。This example tests to see if the list type is a numbered list, specifically pbListTypeArabic. If the ListType property is set to pbListTypeArabic the ListNumberSeparator property is set to pbListSeparatorParenthesis. Otherwise, the SetListType method is called and passed pbListTypeArabic as the pbListType parameter and then the ListNumberSeparator property can be set.

Dim objParaForm As ParagraphFormat 

Set objParaForm = ActiveDocument.Pages(1).Shapes(1) _ 
.TextFrame.TextRange.ParagraphFormat 

With objParaForm 
 If .ListType = pbListTypeArabic Then 
 .ListNumberSeparator = pbListSeparatorParenthesis 
 Else 
 .SetListType pbListTypeArabic 
 .ListNumberSeparator = pbListSeparatorParenthesis 
 End If 
End With 
© 2018 Microsoft