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

WorksheetHeaderFooter.AddPicture(String, HeaderFooterSection) Method

Adds picture to the worksheet header or footer.

Namespace: DevExpress.Spreadsheet

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

Declaration

HeaderFooterPicture AddPicture(
    string filename,
    HeaderFooterSection section
)

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.

See Also