[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IHeaderFooter

IHeaderFooter Interface

Represents one section of a page header or footer that can contain text or a picture.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface IHeaderFooter
Public Interface IHeaderFooter
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);
}

Properties

Name Description
Picture

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

Text

Gets or sets the text included in the specified header or footer section.