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.ExcelAssembly: SautinSoft.Excel (in SautinSoft.Excel.dll) Version: 2025.2.6
Syntaxpublic CPageStylePageNumbers PageNumFormat { get; set; }
Public Property PageNumFormat As CPageStylePageNumbers
Get
Set
Property Value
CPageStylePageNumbers
RemarksUsing 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