ExcelHeaderFooter Members

Office Open XML

The ExcelHeaderFooter type exposes the following members.

Methods

  NameDescription
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
CurrentDate
The code for "date"
CurrentTime
The code for "time"
FileName
The code for "this workbook's file name"
FilePath
The code for "this workbook's file path"
FontColor
The code for "text font color" RGB Color is specified as RRGGBB Theme Color is specified as TTSNN where TT is the theme color Id, S is either "+" or "-" of the tint/shade value, NN is the tint/shade value.
Image
The code for "picture as background"
NumberOfPages
The code for "total pages"
OutlineStyle
The code for "outline style"
PageNumber
The code for "current page #"
ShadowStyle
The code for "shadow style"
SheetName
The code for "sheet tab name"

Properties

  NameDescription
AlignWithMargins
Gets/sets the alignWithMargins attribute
differentFirst
Gets/sets the flag that tells Excel to display different headers and footers on the first page of the worksheet.
differentOddEven
Gets/sets the flag that tells Excel to display different headers and footers on odd and even pages.
EvenFooter
Provides access to the footer on even numbered pages of the document.
EvenHeader
Provides access to the header on even numbered pages of the document.
FirstFooter
Provides access to the footer on the first page of the document.
FirstHeader
Provides access to the header on the first page of the document.
OddFooter
Provides access to the footer on odd numbered pages of the document. If you want the same footer on both odd and even pages, then only set values in this ExcelHeaderFooterText class.
OddHeader
Provides access to the header on odd numbered pages of the document. If you want the same header on both odd and even pages, then only set values in this ExcelHeaderFooterText class.
Pictures
Vml drawings. Underlaying object for Header footer images

See Also