Back to Devexpress

SectionLineNumbering.RestartType Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-sectionlinenumbering-066f088e.md

latest7.0 KB
Original Source

SectionLineNumbering.RestartType Property

Gets or sets when the line numbering should be reset to the line number specified by the SectionLineNumbering.Start value.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
LineNumberingRestart RestartType { get; set; }
vb
Property RestartType As LineNumberingRestart

Property Value

TypeDescription
LineNumberingRestart

A LineNumberingRestart enumeration member, specifying the restart type. By default, it is set to LineNumberingRestart.NewPage.

|

Available values:

NameDescription
NewPage

Specifies that line numbering for the current section shall revert to the start value on a new page.

| | NewSection |

Specifies that line numbering for the current section shall revert to the start value when a new section begins.

| | Continuous |

Specifies that line numbering for the current section shall continue from the line numbering at the end of the previous section, if any.

|

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

wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeUtils/SyntaxHightlight.cs#L49

csharp
document.Sections[0].LineNumbering.CountBy = 1;
    document.Sections[0].LineNumbering.RestartType = LineNumberingRestart.Continuous;
}

wpf-spreadsheet-pivot-table-api-examples/CS/SpreadsheetWPFPivotTableExamples/CodeUtils/SyntaxHightlight.cs#L53

csharp
document.Sections[0].LineNumbering.CountBy = 1;
    document.Sections[0].LineNumbering.RestartType = LineNumberingRestart.Continuous;
}

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeUtils/SyntaxHightlight.cs#L49

csharp
document.Sections[0].LineNumbering.CountBy = 1;
    document.Sections[0].LineNumbering.RestartType = LineNumberingRestart.Continuous;
}

winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/CodeUtils/SyntaxHightlight.cs#L53

csharp
document.Sections[0].LineNumbering.CountBy = 1;
    document.Sections[0].LineNumbering.RestartType = LineNumberingRestart.Continuous;
}

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

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

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

vb
sec.LineNumbering.Distance = 0.25F
            sec.LineNumbering.RestartType = DevExpress.XtraRichEdit.API.Native.LineNumberingRestart.NewSection
#End Region ' #LineNumbering

wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeUtils/SyntaxHightlight.vb#L50

vb
document.Sections(0).LineNumbering.CountBy = 1
    document.Sections(0).LineNumbering.RestartType = LineNumberingRestart.Continuous
Finally

wpf-spreadsheet-pivot-table-api-examples/VB/SpreadsheetWPFPivotTableExamples/CodeUtils/SyntaxHightlight.vb#L50

vb
document.Sections(0).LineNumbering.CountBy = 1
    document.Sections(0).LineNumbering.RestartType = LineNumberingRestart.Continuous
Finally

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeUtils/SyntaxHightlight.vb#L51

vb
document.Sections(0).LineNumbering.CountBy = 1
    document.Sections(0).LineNumbering.RestartType = LineNumberingRestart.Continuous
Finally

winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/CodeUtils/SyntaxHightlight.vb#L50

vb
document.Sections(0).LineNumbering.CountBy = 1
    document.Sections(0).LineNumbering.RestartType = LineNumberingRestart.Continuous
Finally

See Also

SectionLineNumbering Interface

SectionLineNumbering Members

DevExpress.XtraRichEdit.API.Native Namespace