officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-footnoteoptions-e2976f92.md
Specifies the footnote reference’s starting number.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
int StartNumber { get; set; }
Property StartNumber As Integer
| Type | Description |
|---|---|
| Int32 |
The starting number.
|
You can access this nested property as listed below:
| Object Type | Path to StartNumber |
|---|---|
| Section |
.FootnoteOptions .StartNumber
|
The StartNumber value is ignored when the FootnoteOptions.RestartType property is set to NoteRestartType.NewSection or NoteRestartType.NewPage.
The code sample below shows how to change the footnotes format so they appear as follows:
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;
}
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
See Also