Back to Devexpress

SectionLineNumbering.Distance Property

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

latest5.3 KB
Original Source

SectionLineNumbering.Distance Property

Gets or sets the distance between the line number and the start of the line.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
float Distance { get; set; }
vb
Property Distance As Single

Property Value

TypeDescription
Single

A Single value specifying the line numbering indent, measured in Document.Unit units

|

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

csharp
richEditControl1.Document.Sections[0].LineNumbering.CountBy = 2;
 richEditControl1.Document.Sections[0].LineNumbering.Distance = 75f;
richEditControl1.Document.Sections[0].LineNumbering.RestartType = DevExpress.XtraRichEdit.API.Native.LineNumberingRestart.Continuous;

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

csharp
sec.LineNumbering.Start = 1;
sec.LineNumbering.Distance = 0.25f;
sec.LineNumbering.RestartType = LineNumberingRestart.NewSection;

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

csharp
sec.LineNumbering.Start = 1;
sec.LineNumbering.Distance = 0.25f;
sec.LineNumbering.RestartType = LineNumberingRestart.NewSection;

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

csharp
sec.LineNumbering.Start = 1;
sec.LineNumbering.Distance = 0.25f;
sec.LineNumbering.RestartType = LineNumberingRestart.NewSection;

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

vb
richEditControl1.Document.Sections(0).LineNumbering.CountBy = 2
richEditControl1.Document.Sections(0).LineNumbering.Distance = 75F
richEditControl1.Document.Sections(0).LineNumbering.RestartType = API.Native.LineNumberingRestart.Continuous

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

vb
sec.LineNumbering.Start = 1
sec.LineNumbering.Distance = 0.25F
sec.LineNumbering.RestartType = DevExpress.XtraRichEdit.API.Native.LineNumberingRestart.NewSection

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

vb
sec.LineNumbering.Start = 1
sec.LineNumbering.Distance = 0.25F
sec.LineNumbering.RestartType = LineNumberingRestart.NewSection

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

vb
sec.LineNumbering.Start = 1
sec.LineNumbering.Distance = 0.25F
sec.LineNumbering.RestartType = DevExpress.XtraRichEdit.API.Native.LineNumberingRestart.NewSection

See Also

SectionLineNumbering Interface

SectionLineNumbering Members

DevExpress.XtraRichEdit.API.Native Namespace