2D Chart for WinForms | ComponentOne
Chart Fundamentals / Defining the Header and Footer Elements
In This Topic
    Defining the Header and Footer Elements
    In This Topic

    Here is how the Header and Footer elements appear in C1Chart:

    The header and footer elements are used to display descriptive information about the chart. They are controlled by the Header and Footer properties. Both properties return a Title object that contains the following main properties:


    Property Description
    Text Contains text displayed in the title (header or footer).
    Style Contains properties that set the font, orientation, colors, and border of the title.
    Compass Determines the position of the title.
    Visible Determines whether the title is visible.

    C1Chart sizes and positions the titles automatically, based on their contents and how the Compass property is set. Title object positions are customized using the SizeDefault and LocationDefault properties (negative values activate the automatic sizing and positioning).

    Creating header and footer elements

    The Chart header and footer elements can be created programmatically through its Title object or they can be created at design time through the Chart's Properties window, Chart Properties designer, or by Chart's SmartDesigner.

    The simplest way of creating them is through the Chart's Smart Designer. For more information on creating header or footers through the Chart's Smart Designer, see Add a Chart Header or Add a Chart Footer.

    Customizing header and footer elements

    The header and footer elements' text and alignment, position, border, colors, and font can be customized using the Title's properties. Additionally, light patterns, shadows, and custom colors can be added to the header and footer elements using the Visual Effects designer.

    Please refer to Customizing Chart Elements for more information on the properties and tools used to enhance 2D Chart's elements. For more information on positioning the header element see Displaying both the Chart Legend and Chart Header.

    See Also