Skip to main content
A newer version of this page is available. .
Row

WorksheetHeaderFooter.AddPicture(Image, HeaderFooterSection) Method

Adds a picture to the worksheet header or footer.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v18.2.Core.dll

Declaration

HeaderFooterPicture AddPicture(
    Image image,
    HeaderFooterSection section
)

Parameters

Name Type Description
image Image

A Image object representing the picture to be added.

section HeaderFooterSection

One of the HeaderFooterSection enumeration values indicating the header or footer section where the picture should be located.

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 are available through the Worksheet.HeaderFooterOptions property.

See Also