Class ExcelHeaderFooter¶
Namespace: OfficeOpenXml
Assembly: EPPlus.dll
Represents the Header and Footer on an Excel Worksheet
Inheritance¶
object ← XmlHelper ← ExcelHeaderFooter
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object?, object?)
object.ToString()
Fields¶
CurrentDate¶
The code for "date"
Field Value¶
CurrentTime¶
The code for "time"
Field Value¶
FileName¶
The code for "this workbook's file name"
Field Value¶
FilePath¶
The code for "this workbook's file path"
Field Value¶
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.
Field Value¶
Image¶
The code for "picture as background"
Field Value¶
NumberOfPages¶
The code for "total pages"
Field Value¶
OutlineStyle¶
The code for "outline style"
Field Value¶
PageNumber¶
The code for "current page #"
Field Value¶
ShadowStyle¶
The code for "shadow style"
Field Value¶
SheetName¶
The code for "sheet tab name"
Field Value¶
Properties¶
AlignWithMargins¶
Align with page margins
Property Value¶
EvenFooter¶
Provides access to the footer on even numbered pages of the document.
Property Value¶
EvenHeader¶
Provides access to the header on even numbered pages of the document.
Property Value¶
FirstFooter¶
Provides access to the footer on the first page of the document.
Property Value¶
FirstHeader¶
Provides access to the header on the first page of the document.
Property Value¶
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.
Property Value¶
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.
Property Value¶
Pictures¶
Vml drawings. Underlaying object for Header footer images
Property Value¶
ExcelVmlDrawingPictureCollection
ScaleWithDocument¶
The header and footer should scale as you use the ShrinkToFit property on the document
Property Value¶
differentFirst¶
Display different headers and footers on the first page of the worksheet.
Property Value¶
differentOddEven¶
Displas different headers and footers on odd and even pages.