[]
Gets the IGraphic object that represents a picture field included in the specified header or footer section.
IGraphic Picture { get; }
ReadOnly Property Picture As IGraphic
IPageSetup pageSetup = worksheet.PageSetup;
pageSetup.DifferentFirstPageHeaderFooter = true;
IHeaderFooter centerHeader = pageSetup.FirstPage.CenterHeader;
centerHeader.Text = "&G";
IGraphic picture = centerHeader.Picture;
using (Stream stream = CreateSampleImageStream())
{
picture.SetGraphicStream(stream, ImageType.PNG);
}