Class ExcelHeaderFooter
- Namespace
- OfficeOpenXml
- Assembly
- EPPlus.dll
Represents the Header and Footer on an Excel Worksheet
public sealed class ExcelHeaderFooter : XmlHelper
- Inheritance
-
ExcelHeaderFooter
- Inherited Members
Fields
CurrentDate
The code for "date"
public const string CurrentDate = "&D"
Field Value
CurrentTime
The code for "time"
public const string CurrentTime = "&T"
Field Value
FileName
The code for "this workbook's file name"
public const string FileName = "&F"
Field Value
FilePath
The code for "this workbook's file path"
public const string FilePath = "&Z"
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.
public const string FontColor = "&K"
Field Value
Image
The code for "picture as background"
public const string Image = "&G"
Field Value
NumberOfPages
The code for "total pages"
public const string NumberOfPages = "&N"
Field Value
OutlineStyle
The code for "outline style"
public const string OutlineStyle = "&O"
Field Value
PageNumber
The code for "current page #"
public const string PageNumber = "&P"
Field Value
ShadowStyle
The code for "shadow style"
public const string ShadowStyle = "&H"
Field Value
SheetName
The code for "sheet tab name"
public const string SheetName = "&A"
Field Value
Properties
AlignWithMargins
Align with page margins
public bool AlignWithMargins { get; set; }
Property Value
EvenFooter
Provides access to the footer on even numbered pages of the document.
public ExcelHeaderFooterText EvenFooter { get; }
Property Value
EvenHeader
Provides access to the header on even numbered pages of the document.
public ExcelHeaderFooterText EvenHeader { get; }
Property Value
FirstFooter
Provides access to the footer on the first page of the document.
public ExcelHeaderFooterText FirstFooter { get; }
Property Value
FirstHeader
Provides access to the header on the first page of the document.
public ExcelHeaderFooterText FirstHeader { get; }
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.
public ExcelHeaderFooterText OddFooter { get; }
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.
public ExcelHeaderFooterText OddHeader { get; }
Property Value
Pictures
Vml drawings. Underlaying object for Header footer images
public ExcelVmlDrawingPictureCollection Pictures { get; }
Property Value
ScaleWithDocument
The header and footer should scale as you use the ShrinkToFit property on the document
public bool ScaleWithDocument { get; set; }
Property Value
differentFirst
Display different headers and footers on the first page of the worksheet.
public bool differentFirst { get; set; }
Property Value
differentOddEven
Displas different headers and footers on odd and even pages.
public bool differentOddEven { get; set; }