NativeExcel for .Net Developer's Reference

IPageSetup.RightFooter Property

Returns or sets the right part of the footer.

[Visual Basic]
PropertyRightFooterAsString
[C#]
stringRightFooter{get;set;}
[C++]
__propertyString*get_RightFooter();
__propertyvoidset_RightFooter(String*);
[JScript]
functiongetRightFooter():String
functionsetRightFooter(String);

Property Value

String. Right part of the footer.

Remarks

Special format codes can be used in the footer text.

Example

This example prints the page number in the lower-right corner of every page.

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

See Also

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