Skip to content

AddNote

Adds a footnote or an endnote. Add the note text to the note's Note.Blocks.

1
myInlineCollection.AddNote(noteType: ( "Endnote" | "Footnote" ), options?: object):Note

Parameters

( "Endnote" | "Footnote" ) noteType
    'Footnote' or 'Endnote'.

object options optional
    Note properties to set.

Returns

The new note.

Examples

Add a footnote to a paragraph

1
2
3
4
5
6
7
var writer = new Writer();
var paragraph = writer.Sections.Add().Blocks.AddParagraph();

paragraph.Inlines.AddRun({ Text : 'Prices include VAT' });

var note = paragraph.Inlines.AddNote('Footnote');
note.Blocks.AddParagraph().Inlines.AddRun({ Text : 'VAT rate at the order date.' });

See Also