[]
Represents one section of a page header or footer that can contain text or a picture.
public interface IHeaderFooter
Public Interface IHeaderFooter
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);
}
| 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. |