Reference number in footnotes

Dear Sir or Madam,

I use this code to insert the footnotes:

for (int i = 0; i < 3; i++)
{
    var footnote = new Footnote(mOutputDocument, FootnoteType.Footnote);
    footnote.Paragraphs.Add(new AW.Paragraph(mOutputDocument));
    footnote.FirstParagraph.Runs.Add(new Run(mOutputDocument, $"Footnote {i}" ));
    footnote.Font.Superscript = true;
    para.AppendChild(footnote);
}

The references numbers are missed in the footnotes (see attached documents). What property should I set to have references numbers
Alex test-Non-current assets - property, plant and equipment-Alex test-Equity-Suffix.docx (16.4 KB)

in the footnotes?

Can you please provide more details about the issue you are facing with inserting footnotes? Specifically, what reference number functionality are you looking for?

@AlexanderNovickov You can easily resolve the problem by using InsertFootnote method instead of building footnote from scratch. For instance see the following code:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("Some text is added.");
builder.InsertFootnote(FootnoteType.Footnote, "Footnote text.");
doc.Save(@"Test001\out.docx");