NativeExcel for .Net Developer's Reference

IPageSetup.RightHeader Property

Returns or sets the right part of the header.

[Visual Basic]
PropertyRightHeaderAsString
[C#]
stringRightHeader{get;set;}
[C++]
__propertyString*get_RightHeader();
__propertyvoidset_RightHeader(String*);
[JScript]
functiongetRightHeader():String
functionsetRightHeader(String);

Property Value

String. Right part of the header.

Remarks

Special format codes can be used in the header text.

Example

This example prints the filename in the upper-right corner of every page.

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

See Also

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