Class ExcelHeaderFooterText
- Namespace
- OfficeOpenXml
- Assembly
- EPPlus.dll
Print header and footer
public class ExcelHeaderFooterText
- Inheritance
-
ExcelHeaderFooterText
- Inherited Members
Properties
CenteredText
Get/set the text to appear in the center of the header (or footer) on the worksheet.
public string CenteredText { get; set; }
Property Value
LeftAlignedText
Get/set the text to appear on the left hand side of the header (or footer) on the worksheet.
public string LeftAlignedText { get; set; }
Property Value
RightAlignedText
Get/set the text to appear on the right hand side of the header (or footer) on the worksheet.
public string RightAlignedText { get; set; }
Property Value
Methods
InsertPicture(FileInfo, PictureAlignment)
Inserts a picture at the end of the text in the header or footer
public ExcelVmlDrawingPicture InsertPicture(FileInfo PictureFile, PictureAlignment Alignment)
Parameters
PictureFile
FileInfoThe image object containing the Picture
Alignment
PictureAlignmentAlignment. The image object will be inserted at the end of the Text.
Returns
InsertPicture(Stream, ePictureType, PictureAlignment)
Inserts a picture at the end of the text in the header or footer
public ExcelVmlDrawingPicture InsertPicture(Stream PictureStream, ePictureType pictureType, PictureAlignment Alignment)
Parameters
PictureStream
StreamThe stream containing the picture
pictureType
ePictureTypeThe image format of the picture stream
Alignment
PictureAlignmentAlignment. The image object will be inserted at the end of the Text.