Word) (CaptionLabel 对象

代表单个题注标签。 CaptionLabel 对象是 CaptionLabels 的成员 集合。 在 题注对话框中的 标签框中列出了 CaptionLabels 集合中的项。

备注

使用 CaptionLabels (索引) (其中 index 是标题标签名称或索引号)可返回单个 CaptionLabel 对象。 下面的示例设置图形题注标签的编号样式。

CaptionLabels("Figure").NumberStyle = _ 
 wdCaptionNumberStyleLowercaseLetter

索引号代表 CaptionLabels 集合中的题注标签的位置。 下面的示例显示第一个题注标签。

MsgBox CaptionLabels(1).Name

使用 添加 若要添加自定义题注标签的方法。 下面的示例添加题注标签名为"照片。

CaptionLabels.Add Name:="Photo"

方法

名称
Delete

属性

名称
Application
BuiltIn
ChapterStyleLevel
Creator
ID
IncludeChapterNumber
名称
NumberStyle
Parent
Position
Separator

另请参阅

Word 对象模型参考

支持和反馈

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