CaptionLabels 对象 (Word)
一套 CaptionLabel 对象,表示可用的题注标签。 在 题注对话框中的 标签框中列出了 CaptionLabels 集合中的项。
使用 CaptionLabels 属性返回 CaptionLabels 集合。 默认情况下, CaptionLabels 集合包含三个内置题注标签︰ 图、 表和方程式。
使用 添加 若要添加自定义题注标签的方法。 下面的示例添加题注标签名为"照片。
CaptionLabels.Add Name:="Photo"
使用 CaptionLabels (索引) (其中 index 是标题标签名称或索引号)可返回单个 CaptionLabel 对象。 下面的示例设置图形题注标签的编号样式。
CaptionLabels("Figure").NumberStyle = _
wdCaptionNumberStyleLowercaseLetter
索引号代表 CaptionLabels 集合中的题注标签的位置。 下面的示例显示第一个题注标签。
MsgBox CaptionLabels(1).Name
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。