Search Results for

    Show / Hide Table of Contents

    Interface IHeader

    Interface for worksheet header

    Inherited Members
    IHeaderFooter.Left
    IHeaderFooter.Center
    IHeaderFooter.Right
    Namespace: IronXL.Layout
    Assembly: IronXL.dll
    Syntax
    public interface IHeader : IHeaderFooter

    IHeader is the running header a developer edits to print text across the top of every page of a worksheet, such as a report title, a date, or a logo caption. It is what a worksheet returns specifically for the top-of-page band, distinct from the footer that prints along the bottom. A developer assigns text to its three positioned zones so a printed or exported spreadsheet carries consistent page furniture without manual editing in Excel.

    A developer obtains an IHeader from WorkSheet.Header; there is no constructor, and the header belongs to its worksheet. IHeader extends IHeaderFooter and declares no members of its own, so its entire editable surface is inherited: the Left, Center, and Right properties, each a readable and writable string, hold the text for the left, center, and right zones of the header band. The matching IFooter, returned by WorkSheet.Footer, shares the same inherited surface; the two types differ only in which page band they address. Set the zones a layout needs and save the workbook to apply them to print output.

    IHeader header = sheet.Header;
    header.Center = "Quarterly Report";
    header.Left = "Iron Software";

    The Excel print setup example configures a sheet for printing, where header text prints on each page, and the IHeaderFooter reference documents the inherited Left, Center, and Right zones.

    Inherited members

    Left
    Center
    Right

    See Also

    IHeaderFooter
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget