Back to Devexpress

EndnoteOptions.StartNumber Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-endnoteoptions-7d78632c.md

latest2.7 KB
Original Source

EndnoteOptions.StartNumber Property

Specifies the endnote reference’s starting number.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
int StartNumber { get; set; }
vb
Property StartNumber As Integer

Property Value

TypeDescription
Int32

The starting number.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to StartNumber
Section

.EndnoteOptions .StartNumber

|

Remarks

The StartNumber value is ignored when the EndnoteOptions.RestartType property is set to NoteRestartType.NewSection or NoteRestartType.NewPage.

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

csharp
using (RichEditDocumentServer wordProcessor = new RichEditDocumentServer())
{
    wordProcessor.LoadDocument("Document.docx");
    Document document = wordProcessor.Document;
    EndnoteOptions endnoteOptions = document.Sections[0].EndnoteOptions;
    endnoteOptions.NumberingFormat = NumberingFormat.UpperRoman;
    endnoteOptions.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).EndnoteOptions
  endnoteOptions.NumberingFormat = NumberingFormat.UpperRoman
  endnoteOptions.StartNumber = 5
End Using

See Also

EndnoteOptions Interface

EndnoteOptions Members

DevExpress.XtraRichEdit.API.Native Namespace