Number 属性

       

BulletFormat 对象的 Type 属性设置为 ppBulletNumbered 时,返回段落的项目符号编号。只读。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