CaptionLabels object (Word)
A collection of CaptionLabel objects that represent the available caption labels. The items in the CaptionLabels collection are listed in the Label box in the Caption dialog box.
Remarks
Use the CaptionLabels property to return the CaptionLabels collection. By default, the CaptionLabels collection includes the three built-in caption labels: Figure, Table, and Equation.
Use the Add method to add a custom caption label. The following example adds a caption label named "Photo."
CaptionLabels.Add Name:="Photo"
Use CaptionLabels (index), where index is the caption label name or index number, to return a single CaptionLabel object. The following example sets the numbering style for the Figure caption label.
CaptionLabels("Figure").NumberStyle = _
wdCaptionNumberStyleLowercaseLetter
The index number represents the position of the caption label in the CaptionLabels collection. The following example displays the first caption label.
MsgBox CaptionLabels(1).Name
Methods
Name |
---|
Add |
Item |
Properties
Name |
---|
Application |
Count |
Creator |
Parent |
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기