public void InsertFootnote()
{
//ExStart
//ExFor:Footnote
//ExFor:FootnoteType
//ExFor:DocumentBuilder.InsertFootnote(FootnoteType,string)
//ExFor:DocumentBuilder.InsertFootnote(FootnoteType,string,string)
//ExSummary:Shows how to add a footnote to a paragraph in the document using DocumentBuilder.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("Some text");
builder.InsertFootnote(FootnoteType.Footnote, "Footnote text.");
builder.InsertFootnote(FootnoteType.Footnote, "Footnote text.", "242");
//ExEnd
Assert.AreEqual("Footnote text.", doc.GetChildNodes(NodeType.Footnote, true)[0].ToString(SaveFormat.Text).Trim());
}