多种对象![]() ![]() ![]() |
代表位于页面底端或文字下方的脚注。Footnote 对象是 Footnotes 集合中一个的元素。Footnotes 集合包括了选定内容、区域或文档中的各条脚注。
用 Footnotes (index) 可返回单个的 Footnote 对象,其中 index 是索引序号。索引序号代表脚注在选定内容、区域或文档中的位置。下列示例将选定内容中的第一个脚注设置为红色。
If Selection.Footnotes.Count >= 1 Then
Selection.Footnotes(1).Reference.Font.ColorIndex = wdRed
End If
用 Add 方法可在 Footnotes 集合中添加脚注。下列示例紧接着选定内容添加一条自动编号的脚注。
Selection.Collapse Direction:=wdCollapseEnd
ActiveDocument.Footnotes.Add Range:=Selection.Range , _
Text:="The Willow Tree, (Lone Creek Press, 1996)."
将文档或节的结尾处的脚注看作是尾注并将其包含在 Endnotes 集合中。