FootnoteReferenceMark Property

Gets/sets custom reference mark to be used for this footnote. Default value is empty string (Empty), meaning auto-numbered footnotes are used.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public string ReferenceMark { get; set; }

Property Value

Type: String
Remarks

If this property is set to empty string (Empty) or null, then IsAuto property will automatically be set to true, if set to anything else then IsAuto will be set to false.

RTF-format can only store 1 symbol as custom reference mark, so upon export only the first symbol will be written others will be discard.

Examples
Shows how to add a footnote to a paragraph in the document and set its marker.
// Create a new document and append some text that we will reference with a footnote
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("Main body text.");

// Add a footnote and give it text, which will appear at the bottom of the page
Footnote footnote = builder.InsertFootnote(FootnoteType.Footnote, "Footnote text.");

// This attribute means the footnote in the main text will automatically be assigned a number, "1" in this instance
// The next footnote will get "2"
Assert.True(footnote.IsAuto);

// We can edit the footnote's text like this
// Make sure to move the builder back into the document body afterwards
builder.MoveTo(footnote.FirstParagraph);
builder.Write(" More text added by a DocumentBuilder.");
builder.MoveToDocumentEnd();

Assert.AreEqual("Footnote text. More text added by a DocumentBuilder.", footnote.Paragraphs[0].ToString(SaveFormat.Text).Trim());

builder.Write(" More main body text.");
footnote = builder.InsertFootnote(FootnoteType.Footnote, "Footnote text.");

// Substitute the reference number for our own custom mark by setting this variable, "IsAuto" will also be set to false
footnote.ReferenceMark = "RefMark";
Assert.False(footnote.IsAuto);

// This bookmark will get a number "3" even though there was no "2"
builder.Write(" More main body text.");
footnote = builder.InsertFootnote(FootnoteType.Footnote, "Footnote text.");
Assert.True(footnote.IsAuto);

doc.Save(ArtifactsDir + "InlineStory.AddFootnote.docx");
See Also