WorksheetHeaderFooter.AddPicture(String, HeaderFooterSection) Method
Adds picture to the worksheet header or footer.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v18.2.Core.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
filename | String | A string that is the file name of the picture. |
section | HeaderFooterSection | One of the HeaderFooterSection enumeration values identifying the section to which the picture is going to be added. |
Returns
Type | Description |
---|---|
HeaderFooterPicture | A HeaderFooterPicture object that is the added picture. |
Remarks
This method can be applied to any of the WorksheetHeaderFooter instances, accessible through the WorksheetHeaderFooterOptions.OddHeader, WorksheetHeaderFooterOptions.OddFooter, WorksheetHeaderFooterOptions.FirstHeader,WorksheetHeaderFooterOptions.FirstFooter, WorksheetHeaderFooterOptions.EvenHeader and WorksheetHeaderFooterOptions.EvenFooter properties. All of them can be reached through the Worksheet.HeaderFooterOptions property.