DocumentBuilderInsertFootnote Method (FootnoteType, String)
Inserts a footnote or endnote into the document.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.10
Syntax
public Footnote InsertFootnote(
	FootnoteType footnoteType,
	string footnoteText
)

Parameters

footnoteType
Type: Aspose.WordsFootnoteType
Specifies whether to insert a footnote or an endnote.
footnoteText
Type: SystemString
Specifies the text of the footnote.

Return Value

Type: Footnote
Returns a footnote object that was just created.
Examples
Shows how to add a footnote to a paragraph in the document using DocumentBuilder.
[C#]

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

for (int i = 0; i <= 100; i++)
{
    builder.Write("Some text " + i);

    builder.InsertFootnote(FootnoteType.Footnote, "Footnote text " + i);
    builder.InsertFootnote(FootnoteType.Footnote, "Footnote text " + i, "242");
}
See Also