Click or drag to resize

CPageStylePageNumFormat Property

Allows to set custom page numbers in produced document. By default: Page numbers located at the bottom-right of page and font face is "Helvetica" and font size is "10".

Namespace: SautinSoft.Excel
Assembly: SautinSoft.Excel (in SautinSoft.Excel.dll) Version: 2025.2.6
Syntax
public CPageStylePageNumbers PageNumFormat { get; set; }

Property Value

CPageStylePageNumbers
Remarks
Using this property you may set custom page numbers as you wish.

These are special keywords to custom page numbers in property Text:

{page} - current page number
{numpages} - total pages
By default: Page numbers located at the bottom-right of page and font face is "Helvetica" and font size is "10".

These are samples of using this property:

x.PageStyle.PageNumFormat.Text="Page {page} of {numpages}";

See Also