Skip to main content

RichEditView.AllowDisplayLineNumbers Property

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

Namespace: DevExpress.XtraRichEdit

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

[DefaultValue(false)]
public virtual bool AllowDisplayLineNumbers { get; set; }

Property Value

Type Default Description
Boolean false

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

Remarks

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).

Note

In Print Layout View use the PrintLayoutView.AllowDisplayLineNumbers property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowDisplayLineNumbers property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also