Skip to main content

Line Numbers Dialog

The Line Numbers dialog enables end-users to switch on or suppress the line numbering in the document and specify different line numbering options.

RTELineNumbersDialog

End-users can invoke this dialog by clicking Line Numbering Options… in the Line Numbers drop-down list on the Page Layout ribbon tab. Refer to the How to: Create the RichEditControl with a Ribbon UI topic for details on how to provide the ribbon UI for the RichEditControl. Executing the ShowLineNumberingFormCommand command invokes the dialog as well.

XtraRichEdit_Dialogs_LineNumbering_Invoke

To programmatically get or set the line numbering parameters (Start at, Count by, From text, Numbering), use the SectionLineNumbering.Start, SectionLineNumbering.CountBy, SectionLineNumbering.Distance, SectionLineNumbering.RestartType properties of the SectionLineNumbering object accessed via the Section.LineNumbering property of the document section.

To customize the default Line Numbers dialog (modify captions, set default dialog values, implement custom validation, etc.) or substitute it with completely new dialog, handle the RichEditControl.LineNumberingFormShowing event. To get an example of the dialog replacement, refer to the How to: Customize the Search Form or How to: Customize the Hyperlink Form document.

See Also