SelectNoteReference
选择此脚注/尾注的引用。如果此文档内容不是脚注/尾注,则不执行任何操作。
语法
expression.SelectNoteReference();
expression - 表示 ApiDocument 类的变量。
参数
此方法没有任何参数。
返回值
boolean
示例
此示例展示如何在文档中选择脚注/尾注引用。
// How to add footnote to the document.
// How to select footnote reference and increate its font size.
let doc = Api.GetDocument();
let footnote = doc.AddFootnote();
let paragraph = footnote.GetElement(0);
paragraph.AddText("Footnote text");
footnote.SelectNoteReference();
doc.GetRangeBySelect().SetFontSize(48);