Share via


BulletFormat.Number Property

Returns the bullet number of a paragraph when the Type property of the BulletFormat object is set to ppBulletNumbered. Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property Number As Integer
    Get
'Usage
Dim instance As BulletFormat
Dim value As Integer

value = instance.Number
int Number { get; }

Property Value

Type: System.Int32
Long

Remarks

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.

Examples

This 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 = .NumberEnd If

        End With

    End If

End With

See Also

Reference

BulletFormat Interface

BulletFormat Members

Microsoft.Office.Interop.PowerPoint Namespace