FootnoteSeparatorType

FootnoteSeparatorType enumeration

指定脚注/尾注分隔符的类型。

public enum FootnoteSeparatorType

价值观

姓名价值描述
FootnoteSeparator0正文和脚注文本之间的分隔符。
FootnoteContinuationSeparator1当文本必须从上一页继续时,打印在页面的脚注文本上方。
FootnoteContinuationNotice2当脚注文本必须在后续页面上继续时,打印在页面的脚注文本下方。
EndnoteSeparator3正文和尾注文本之间的分隔符。
EndnoteContinuationSeparator4当文本必须从上一页继续时,打印在页面尾注文本上方。
EndnoteContinuationNotice5当尾注文本必须在后续页面上继续时,打印在页面尾注文本下方。

例子

显示如何删除尾注分隔符。

Document doc = new Document(MyDir + "Footnotes and endnotes.docx");

FootnoteSeparator endnoteSeparator = doc.FootnoteSeparators[FootnoteSeparatorType.EndnoteSeparator];
// 删除尾注分隔符。
endnoteSeparator.FirstParagraph.FirstChild.Remove();

显示如何管理脚注分隔符格式。

Document doc = new Document(MyDir + "Footnotes and endnotes.docx");

FootnoteSeparator footnoteSeparator = doc.FootnoteSeparators[FootnoteSeparatorType.FootnoteSeparator];
// 对齐脚注分隔符。
footnoteSeparator.FirstParagraph.ParagraphFormat.Alignment = ParagraphAlignment.Center;

也可以看看