TX Text Control .NET Server

Footnote Class

Class|Introduced in 32.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

A Footnote object represents a footnote in a TextControl document. A footnote can be inserted trough the FootnoteCollection.Add method. It consists of a reference mark in the document and the footnote itself appearing at the bottom of the page. The footnote has a footnote mark with the same number as the reference mark. All Footnote objects are contained in the FootnoteCollection which can be obtained with the Footnotes property.

Syntax

public class Footnote

Examples

The following example adds and configures a source note at the current input position.

Footnote footnote = new("Source: FY 2026 annual report");
textControl.Footnotes.Add(footnote, false);

Members

Constructors

ConstructorDescription
FootnoteInitializes a new instance of the Footnote class.

Properties

PropertyDescription
DefaultHighlightColorGets the default highlight color for the reference mark and the footnote mark.
HighlightColorGets or sets the highlight color for the reference mark and the footnote mark.
HighlightModeGets or sets a value indicating whether the reference mark and the footnote mark is highlighted.
IDGets or sets a user-defined identifier. It must be a one-based value. A value of zero indicates that the footnote has no identifier.
NameGets or sets a name for the footnote. An empty string indicates that the footnote has no name.
NumberGets the footnote's number in the text. The first footnote in the document has the number 1. The number is defined through the textflow.
ReferenceMarkLengthGets the number of characters the reference mark consists of.
ReferenceMarkStartGets the index (one-based) of the first character of the footnote's reference mark.
TextGets the footnote's text including the footnote mark in front of the text.

Methods

MethodDescription
EditSets the current text input position in the footnote section at the end of the current footnote text, so that the text can be edited or formatted.
SaveSaves the footnote's text with the specified format including the footnote mark in front of the text.
ScrollToSets the current input position to the first position of the footnote mark and scrolls it into the visible part of the document.