Back to Devexpress

PrintLayoutView.AllowDisplayLineNumbers Property

officefileapi-devexpress-dot-xtrarichedit-dot-printlayoutview.md

latest1.9 KB
Original Source

PrintLayoutView.AllowDisplayLineNumbers Property

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

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(true)]
public override bool AllowDisplayLineNumbers { get; set; }
vb
<DefaultValue(True)>
Public Overrides Property AllowDisplayLineNumbers As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

How To: Add Line Numbering in the Rich Text Editor

LineNumbering

CountBy

PrintLayoutView Class

PrintLayoutView Members

DevExpress.XtraRichEdit Namespace