Back to Devexpress

FootnoteOptions Interface

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-3e5a285a.md

latest3.5 KB
Original Source

FootnoteOptions Interface

Contains footnote options.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public interface FootnoteOptions
vb
Public Interface FootnoteOptions

The following members return FootnoteOptions objects:

Remarks

Use the FootnoteOptions properties to specify the footnote format, location and layout.

The NumberingFormat, StartNumber, and RestartType properties allow you to change footnote’s format. If the RestartType property is set to NoteRestartType.NewSection or NoteRestartType.NewPage, the StartNumber property value is ignored.

The code sample below shows how to change the footnotes format so they appear as follows:

csharp
using (RichEditDocumentServer wordProcessor = new RichEditDocumentServer())
{
    wordProcessor.LoadDocument("Document.docx");
    Document document = wordProcessor.Document;
    FootnoteOptions footnoteOptions = document.Sections[0].FootnoteOptions;
    footnoteOptions.NumberingFormat = NumberingFormat.UpperRoman;
    footnoteOptions.StartNumber = 5;
}
vb
Using wordProcessor As New RichEditDocumentServer()
  wordProcessor.LoadDocument("Document.docx")
  Dim document As Document = wordProcessor.Document
  Dim footnoteOptions As FootnoteOptions = document.Sections(0).FootnoteOptions
  footnoteOptions.NumberingFormat = NumberingFormat.UpperRoman
  footnoteOptions.StartNumber = 5
End Using

The Position property allows you to specify one of following footnote locations:

Use FootnoteOptions.ColumnCount property to divide footnotes into columns. This property is ignored when a document is displayed in the RichEditControl. However, you can set this property in code and save its value to a file for further processing in Microsoft Word or other word processing applications.

See Also

FootnoteOptions Members

DevExpress.XtraRichEdit.API.Native Namespace