应用于 CaptionLabel 对象的 Separator 属性。
返回或设置章节编号和序列编号间的字符。WdSeparatorType,可读写。
WdSeparatorType 可以是下列 WdSeparatorType 常量之一: |
wdSeparatorColon |
wdSeparatorEnDash |
wdSeparatorPeriod |
wdSeparatorEmDash |
wdSeparatorHyphen |
expression.Separator
expression 必需。该表达式返回一个 CaptionLabel 对象。
应用于 Endnotes 和 Footnotes 对象的 Separator 属性。
应用于 TableOfAuthorities 对象的 Separator 属性。
返回或设置序列编号与页码之间的字符(最多 5 个)。默认字符为一个连字符 (-)。该属性对应于引文目录 (TOA) 域的 \d 开关。String 类型,可读写。
expression.Separator
expression 必需。该表达式返回一个 TableOfAuthorities 对象。
本示例插入一个图表题注,在章节编号和序列编号间有一个冒号 (:)。
With CaptionLabels("Figure")
.Separator = wdSeparatorColon
.IncludeChapterNumber = True
End With
Selection.InsertCaption "Figure"
本示例将脚注分隔符更改为一个单边框,此单边框从右边距缩进 3 英寸。
With ActiveDocument.Footnotes.Separator
.Delete
.Borders(wdBorderTop).LineStyle = wdLineStyleSingle
.ParagraphFormat.RightIndent = InchesToPoints(3)
End With
本示例将在活动文档的开头插入一个引文目录,然后设置目录的格式,使其包括用连字符 (-) 隔开的序列编号和页码。
Set myRange = ActiveDocument.Range(0, 0)
With ActiveDocument.TablesOfAuthorities.Add(Range:=myRange)
.IncludeSequenceName = "Chapter"
.Separator = "-"
End With