NativeExcel for .Net Developer's Reference

IPageSetup.CenterFooter Property

Returns or sets the center part of the footer.

[Visual Basic]
PropertyCenterFooterAsString
[C#]
stringCenterFooter{get;set;}
[C++]
__propertyString*get_CenterFooter();
__propertyvoidset_CenterFooter(String*);
[JScript]
functiongetCenterFooter():String
functionsetCenterFooter(String);

Property Value

String. Center part of the footer.

Remarks

Special format codes can be used in the footer text.

Example

This example prints the workbook name and page number at the bottom of each page.

[C#]
book.Worksheets[1].PageSetup.CenterFooter = "&F page &P";
[VisualBasic]
book.Worksheets(1).PageSetup.CenterFooter = "&F page &P"
[C++]
book->Worksheets->Item[1]->PageSetup->CenterFooter = S"&F page &P";

See Also

IPageSetup Interface | NativeExcel Namespace | Special Formatting Codes | CenterHeader | RightHeader | RightHeader | LeftFooter | CenterFooter | PageSetup Property