using System;
using System.Collections;
using System.ComponentModel;
using FastReport.Utils;
namespace FastReport
{
///
/// Represents a page footer band.
///
public class PageFooterBand : BandBase
{
#region Properties
///
/// This property is not relevant to this class.
///
[Browsable(false)]
public new bool StartNewPage
{
get { return base.StartNewPage; }
set { base.StartNewPage = value; }
}
///
/// This property is not relevant to this class.
///
[Browsable(false)]
public new bool PrintOnBottom
{
get { return base.PrintOnBottom; }
set { base.PrintOnBottom = value; }
}
#endregion
///
public override void InitializeComponent()
{
base.InitializeComponent();
// SubreportObject on a pagefooter will produce StackOverflow exception. Set PrintOnParent flag to avoid this
foreach (ReportComponentBase obj in Objects)
{
if (obj is SubreportObject)
(obj as SubreportObject).PrintOnParent = true;
}
}
///
/// Initializes a new instance of the class with default settings.
///
public PageFooterBand()
{
FlagUseStartNewPage = false;
}
}
}