Skip to main content
.NET Framework 4.5.2+

SectionLineNumbering.CountBy Property

Gets or sets the line number increments to be displayed in the current document.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Package: DevExpress.RichEdit.Core


int CountBy { get; set; }

Property Value

Type Description

An integer by which the line number increments.


The CountBy property specifies which lines will display a line number. By default, it is set to zero and line numbering is suppressed. To switch the line numbering on, specify the CountBy as a non-zero positive integer. For a line number on every line, set the CountBy to 1.

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


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