示例#1
0
        /// <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);
        }
示例#2
0
 /// <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));
 }