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