CaptionLabel.ID Property

Word Developer Reference

Returns a WdCaptionLabelID constant that represents the type for the specified caption label if the BuiltIn property of the CaptionLabel object is True. Read-only.

Syntax

expression.ID

expression   Required. A variable that represents a CaptionLabel object.

Example

This example displays the built-in caption label names and ID values.

Visual Basic for Applications
  For Each cl In CaptionLabels
    If cl.BuiltIn = True Then MsgBox cl.Name & " " & cl.ID
Next cl

See Also