.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

SectionLineNumbering Interface

Defines line numbers in the left margin or to the left of each column in the document's Section.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

[ComVisible(true)]
public interface SectionLineNumbering
<ComVisible(True)>
Public Interface SectionLineNumbering
[ComVisible(true)]
public interface SectionLineNumbering
<ComVisible(True)>
Public Interface SectionLineNumbering
[ComVisible(true)]
public interface SectionLineNumbering
<ComVisible(True)>
Public Interface SectionLineNumbering

Remarks

The SectionLineNumbering interface is accessible via the Section.LineNumbering property of the document's section.

By default, line numbering is suppressed. To switch line numbering on, set the AllowDisplayLineNumbers property of the required view to true and also set the SectionLineNumbering.CountBy property to any non-zero positive integer value.

Examples

Document document = server.Document;
document.LoadDocument("Documents\\Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml);
document.Unit = DevExpress.Office.DocumentUnit.Inch;
Section sec = document.Sections[0];
sec.LineNumbering.CountBy = 2;
sec.LineNumbering.Start = 1;
sec.LineNumbering.Distance = 0.25f;
sec.LineNumbering.RestartType = LineNumberingRestart.NewSection;
See Also