PowerPoint) (BulletFormat.Number 属性

BulletFormat 对象的 Type 属性设置为 ppBulletNumbered 时,返回段落的项目符号编号。 此为只读属性。

语法

表达式数量

表达 一个代表 BulletFormat 对象的变量。

返回值

Long

备注

如果多个段落具有不同编号查询此属性,则返回值 ppBulletMixed 。 如果此属性查询的一个段落,除 ppBulletNumbered 以外的类型,运行时错误发生。

示例

本示例将所选文本区域中第一段的项目符号编号返回到名为 的 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

另请参阅

BulletFormat 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。