WorksheetHeaderFooter.AddPicture(SpreadsheetImageSource, HeaderFooterSection) Method
Adds a picture to the worksheet header or footer.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v18.2.Core.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
imageSource | SpreadsheetImageSource | A SpreadsheetImageSource object representing the image in the spreadsheet. |
section | HeaderFooterSection | One of the HeaderFooterSection enumeration values indicating the header or footer section to which the image should be added. |
Returns
Type | Description |
---|---|
HeaderFooterPicture | A HeaderFooterPicture object that is the added picture. |
Remarks
Use the Worksheet.HeaderFooterOptions property to reach the WorksheetHeaderFooterOptions instance. Its properties, such as WorksheetHeaderFooterOptions.OddHeader, WorksheetHeaderFooterOptions.OddFooter, WorksheetHeaderFooterOptions.FirstHeader,WorksheetHeaderFooterOptions.FirstFooter, WorksheetHeaderFooterOptions.EvenHeader and WorksheetHeaderFooterOptions.EvenFooter provides access to the corresponding WorksheetHeaderFooter objects.