.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

RichEditView.AllowDisplayLineNumbers Property

Gets or sets whether line numbers can be displayed in the view.

Namespace: DevExpress.XtraRichEdit

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


public virtual bool AllowDisplayLineNumbers { get; set; }
Public Overridable Property AllowDisplayLineNumbers As Boolean

Property Value

Type Description

true to show line numbers if they are enabled; otherwise, false.


To enable line numbering, set the SectionLineNumbering.CountBy value for the document section to a positive integer other than zero.

In SimpleView and DraftView views line numbers are outside the default visible area, so you have to provide a space to display them by setting the left padding to a higher value (use the SimpleView.Padding or the DraftView.Padding property, respectively).


In Print Layout View use the PrintLayoutView.AllowDisplayLineNumbers property.

See Also