Skip to main content

SelectNoteReference

Selects the reference to this footnote/endnote.

If this document content is not a footnote/endnote, do nothing.

Inherited from ApiDocumentContent.SelectNoteReference.

Syntax​

expression.SelectNoteReference();

expression - A variable that represents an ApiDocument class.

Parameters​

This method doesn't have any parameters.

Returns​

boolean

Example​

Select a footnote reference marker in a document.

// How do I select the inline reference mark of a footnote in a document?

// Target a footnote's reference mark to resize it independently from the surrounding body text.

let doc = Api.GetDocument();
let footnote = doc.AddFootnote();
let paragraph = footnote.GetElement(0);
paragraph.AddText("Footnote text");

footnote.SelectNoteReference();

doc.GetRangeBySelect().SetFontSize(48);