/// <summary> /// return the first section in the report with the specified type /// </summary> /// <param name="sectionType"></param> /// <returns></returns> public ExportSection GetSection(ExportSection.eSectionType sectionType) { foreach (ExportSection reportSection in this) { if (reportSection.SectionType == sectionType) { return(reportSection); } } return(null); }
/// <summary> /// return the first section in the report with the specified type /// </summary> /// <param name="sectionType"></param> /// <returns></returns> public ExportSection GetReportSection(ExportSection.eSectionType sectionType) { return(_listReportSections.GetSection(sectionType)); }