Class ExcelHeaderFooterText¶
Namespace: OfficeOpenXml
Assembly: EPPlus.dll
Print header and footer
Inheritance¶
object ← ExcelHeaderFooterText
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Centered¶
The text collection of the centered part of the header or footer.
Property Value¶
ExcelHeaderFooterTextCollection
CenteredText¶
Get/set the text to appear in the center of the header (or footer) on the worksheet.
Property Value¶
LeftAligned¶
The text collection of the left part of the header or footer.
Property Value¶
ExcelHeaderFooterTextCollection
LeftAlignedText¶
Get/set the text to appear on the left hand side of the header (or footer) on the worksheet.
Property Value¶
RightAligned¶
The text collection of the right part of the header or footer.
Property Value¶
ExcelHeaderFooterTextCollection
RightAlignedText¶
Get/set the text to appear on the right hand side of the header (or footer) on the worksheet.
Property Value¶
Methods¶
InsertPicture(FileInfo, PictureAlignment)¶
Inserts a picture at the end of the text in the header or footer
Parameters¶
PictureFile FileInfo
The image object containing the Picture
Alignment PictureAlignment
Alignment. 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 Stream
The stream containing the picture
pictureType ePictureType
The image format of the picture stream
Alignment PictureAlignment
Alignment. The image object will be inserted at the end of the Text.
Returns¶
RemoveImage(ExcelVmlDrawingPicture)¶
Remove the specified item from the collection.
Parameters¶
The item to remove.