Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PrintLayoutView.AllowDisplayLineNumbers Property

Gets or sets whether line numbers, when enabled, are displayed in the PrintLayoutView.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[DefaultValue(true)]
public override bool AllowDisplayLineNumbers { get; set; }

#Property Value

Type Default Description
Boolean true

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

#Remarks

Set the AllowDisplayLineNumbers to false, to prohibit line numbers from appearing in the document.

To enable line numbering, the SectionLineNumbering.CountBy value for the document section should be a positive integer greater than zero.

See Also