SheetHeaderFooter Class
Represents sheet header/footer.
- Inheritance:
- System.ObjectSheetHeaderFooter
Constructors
SheetHeaderFooter()
SheetHeaderFooter constructor.
Properties
AlignWithMargins
Gets or sets if header/footer margin will align with page margins. Supported in XLSX and XLSB only.
Property Value
- System.Boolean
Remarks
This value is currently ignored when exporting a document to PDF, XPS, or image formats.
DefaultPage
Gets or sets default header/footer.
public HeaderFooterPage DefaultPage { get; set; }
Public Property DefaultPage As HeaderFooterPage
Property Value
EvenPage
Gets or sets header/footer for even pages.
Property Value
Remarks
If HasEvenPage returns false, then DefaultPage will be used on even pages. This property is not supported when writing to XLS format.
FirstPage
Gets or sets first page header/footer.
public HeaderFooterPage FirstPage { get; set; }
Public Property FirstPage As HeaderFooterPage
Property Value
Remarks
If HasFirstPage returns false, then DefaultPage will be used on first page. This property is not supported when writing to XLS format.
HasEvenPage
Returns true if EvenPage header/footer is specified.
Property Value
- System.Boolean
Remarks
If HasEvenPage returns false, then DefaultPage will be used on even pages.
HasFirstPage
Returns true if FirstPage header/footer is specified.
Property Value
- System.Boolean
Remarks
If HasFirstPage returns false, then DefaultPage will be used on first page.
ScaleWithDoc
Gets or sets if headers/footers will be scaled with document scaling.
Property Value
- System.Boolean