Back to Devexpress

SectionLineNumbering.Start Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-sectionlinenumbering-a3c00fd2.md

latest4.9 KB
Original Source

SectionLineNumbering.Start Property

Gets or sets the starting value used for the first line.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
int Start { get; set; }
vb
Property Start As Integer

Property Value

TypeDescription
Int32

An integer specifying the line number of the first line.

|

Remarks

The Start value is used for the first line whenever line numbering is restarted, as specified by the SectionLineNumbering.RestartType property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Start 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.

winforms-richedit-enable-line-numbering-and-count-document-rows/CS/LineNumberingExample/Form1.cs#L38

csharp
richEditControl1.Document.Sections[0].LineNumbering.Start = 1;
richEditControl1.Document.Sections[0].LineNumbering.CountBy = 2;

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/PageLayout.cs#L14

csharp
sec.LineNumbering.CountBy = 2;
sec.LineNumbering.Start = 1;
sec.LineNumbering.Distance = 0.25f;

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/PageLayoutActions.cs#L19

csharp
sec.LineNumbering.CountBy = 2;
sec.LineNumbering.Start = 1;
sec.LineNumbering.Distance = 0.25f;

word-document-api-examples/CS/CodeExamples/PageLayoutActions.cs#L32

csharp
sec.LineNumbering.CountBy = 2;
sec.LineNumbering.Start = 1;
sec.LineNumbering.Distance = 0.25f;

winforms-richedit-enable-line-numbering-and-count-document-rows/VB/LineNumberingExample/Form1.vb#L33

vb
richEditControl1.Views.DraftView.AllowDisplayLineNumbers = True
richEditControl1.Document.Sections(0).LineNumbering.Start = 1
richEditControl1.Document.Sections(0).LineNumbering.CountBy = 2

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/PageLayout.vb#L13

vb
sec.LineNumbering.CountBy = 2
sec.LineNumbering.Start = 1
sec.LineNumbering.Distance = 0.25F

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/PageLayoutActions.vb#L11

vb
sec.LineNumbering.CountBy = 2
sec.LineNumbering.Start = 1
sec.LineNumbering.Distance = 0.25F

word-document-api-examples/VB/CodeExamples/PageLayoutActions.vb#L33

vb
sec.LineNumbering.CountBy = 2
sec.LineNumbering.Start = 1
sec.LineNumbering.Distance = 0.25F

See Also

SectionLineNumbering Interface

SectionLineNumbering Members

DevExpress.XtraRichEdit.API.Native Namespace