AddFootnote
function AddFootnote(): ApiDocumentContent
Description
Adds a footnote for the selected text (or the current position if the selection doesn't exist).
Returns
ApiDocumentContent
Try It
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("This is just a sample text.");
oDocument.AddFootnote();
var aFootnotesFirstParagraphs = oDocument.GetFootnotesFirstParagraphs();
aFootnotesFirstParagraphs[0].AddText("Footnote 1");
aFootnotesFirstParagraphs[0].SetBold(true);