MindFusion WinForms Programmer's Guide
PageSection Class
Remarks See Also
 





Represents a page header or footer.

Namespace: MindFusion.Reporting
Assembly: MindFusion.Reporting

 Syntax

C#  Copy Code

public class PageSection : ItemContainer

Visual Basic  Copy Code

Public Class PageSection
    Inherits ItemContainer

 Remarks

When working with the MindFusion.Reporting Designer you don't have to worry about creating instances of this class and assigning them to the appropriate Page properties.

If you want to create a header or footer for a Page object through code, you have to instantiate from this class and assign the instance to the Header or Footer property of the Page object respectively. You can add items to the header or footer through its Items property.

 Example

The following example demonstrates how to create a header for an existing Page object:

C#  Copy Code

PageSection header = new PageSection();

Label headerLabel = new Label();
headerLabel.Text = "Header Text";

header.Items.Add(headerLabel);

page1.Header = header;

Visual Basic  Copy Code

Dim header As New PageSection()

Dim headerLabel As New Label()
headerLabel.Text = "Header Text"

header.Items.Add(headerLabel)

page1.Header = header

 Inheritance Hierarchy

System.Object
    System.MarshalByRefObject
        System.ComponentModel.Component
            MindFusion.Reporting.ReportItem
                MindFusion.Reporting.ItemContainer
                    MindFusion.Reporting.PageSection

 See Also

PageSection Members
MindFusion.Reporting Namespace