Skip to main content
.NET Framework 4.5.2+

ParagraphPropertiesBase.SuppressLineNumbers Property

Gets or sets whether to display line numbers for the paragraphs.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v22.1.Core.dll

Declaration

bool? SuppressLineNumbers { get; set; }

Property Value

Type Description
Nullable<Boolean>

true if line numbering is suppressed for all paragraphs; false if line numbers are displayed for all paragraphs in a range; or otherwise, null for a mixture of states.

Remarks

To enable line numbering, set the SectionLineNumbering.CountBy for the section encompassing the paragraph to a positive integer greater than zero.

Example

Document document = server.Document;
document.LoadDocument("Documents\\Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml);
document.Unit = DevExpress.Office.DocumentUnit.Inch;
Section sec = document.Sections[0];
sec.LineNumbering.CountBy = 2;
sec.LineNumbering.Start = 1;
sec.LineNumbering.Distance = 0.25f;
sec.LineNumbering.RestartType = LineNumberingRestart.NewSection;
See Also