Skip to main content
Row

WorksheetPageNumbering.StartType Property

Gets or sets whether the pagination restarts or continues from the previous page.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

WorksheetPageNumberingStartType StartType { get; set; }

Property Value

Type Description
WorksheetPageNumberingStartType

A WorksheetPageNumberingStartType enumeration member.

Available values:

Name Description
Continuous

Continuously number pages.

Restart

Restart numbering.

Remarks

The following code starts page numbering from 10 on the second worksheet in the workbook and invokes the workbook print preview.

Worksheet sheet = spreadsheetControl1.Document.Worksheets[1];
sheet.PrintOptions.PageNumbering.Start = 10;
sheet.PrintOptions.PageNumbering.StartType = WorksheetPageNumberingStartType.Restart;
spreadsheetControl1.ShowPrintPreview();
See Also