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

BulletFormat.Number 属性 (PowerPoint)BulletFormat.Number Property (PowerPoint)

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

BulletFormat对象的Type属性设置为ppBulletNumbered,则返回一个段落的项目符号编号。只读的。Returns the bullet number of a paragraph when the Type property of the BulletFormat object is set to ppBulletNumbered. Read-only.

语法Syntax

表达式编号expression. Number

表达式_一个表示BulletFormat对象的变量。_expression A variable that represents a BulletFormat object.

返回值Return Value

LongLong

注解Remarks

如果多个段落具有不同编号查询此属性,则返回值ppBulletMixed 。如果此属性查询的一个段落,除ppBulletNumbered以外的类型,运行时错误发生。If this property is queried for multiple paragraphs with different numbers, then the value ppBulletMixed is returned. If this property is queried for a paragraph with a type other than ppBulletNumbered, then a run-time error occurs.

示例Example

本示例返回第一段的项目符号编号中选择的文本范围到一个变量中名为myParnumThis example returns the bullet number of paragraph one in the selected text range to a variable named myParnum.

With ActiveWindow.Selection

    If .Type = ppSelectionTextRange Then

        With .TextRange.Paragraphs(1).ParagraphFormat.Bullet

            If .Type = ppBulletNumbered Then

                myParnum = .Number

            End If

        End With

    End If

End With

另请参阅See also

概念Concepts

BulletFormat 对象BulletFormat Object

© 2018 Microsoft