Skip to main content

Line Numbers Dialog

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

DXRichEdit_LineNumbers_Dialog

You can provide end-users with the capability to invoke the Line Numbers dialog via the Page Setup toolbar or Ribbon page group. To do this, provide Bars or Ribbon UI for the RichEditControl (see Lesson 2 - Create a Simple Word Processor with Bar Menu or Lesson 3 - Create a Simple Word Processor with Ribbon Menu) and create the Page Setup toolbar or Ribbon page group from the Page Layout group of bars.

To invoke the Line Numbers dialog, use the ShowLineNumberingFormCommand command.

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.

See Also