[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IHeaderFooter.Picture

Picture Property

Picture

Gets the IGraphic object that represents a picture field included in the specified header or footer section.

Declaration
IGraphic Picture { get; }
ReadOnly Property Picture As IGraphic
Examples
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);
}