Example #1
0
 /// <summary>
 /// Add a section object to the list of sections
 /// Only one section may be added - generally another section container.
 /// </summary>
 /// <param name="section">The section info to add</param>
 /// <returns>The number of sections</returns>
 public override int AddSection(ReportSection section)
 {
     if (this.sections.Count > 0)
     {
         throw new ApplicationException("Only one section may be directly added to box. Use another container like Layered to hold additional sections.");
     }
     return(this.sections.Add(section));
 }
Example #2
0
 /// <summary>
 /// Add a section object to the list of sections
 /// Only one section may be added - generally another section container.
 /// </summary>
 /// <param name="section">The section info to add</param>
 /// <returns>The number of sections</returns>
 public override int AddSection(ReportSection section)
 {
     if (this.sections.Count > 0)
     {
         throw new ApplicationException ("Only one section may be directly added to box. " +
             "Use another container like Layered to hold additional sections.");
     }
     return this.sections.Add(section);
 }
Example #3
0
 /// <summary>
 /// Adds any ReportSection to the document.
 /// This method is intended for adding non-container sections, such as text,
 /// images, tables. See StartContainer method for beginning a section that
 /// is a container of other sections.
 /// </summary>
 /// <param name="section">ReportSection to add</param>
 /// <returns>The ReportSection added</returns>
 public ReportSection AddSection(ReportSection section)
 {
     if (this.CurrentContainer == null)
     {
         throw new ReportBuilderException("No SectionContainer defined to add section: " + section.ToString());
     }
     this.CurrentContainer.AddSection(section);
     this.currentSection = section;
     if (this.documentMode)
     {
         section.VerticalAlignment = VerticalAlignment.Bottom;
     }
     return section;
 }
Example #4
0
 /// <summary>
 /// Add a section object to the list of sections
 /// Each section object should be a new instance of ReportSection
 /// </summary>
 /// <param name="section">The section info to add</param>
 /// <returns>The number of sections</returns>
 public virtual int AddSection(ReportSection section)
 {
     return(this.sections.Add(section));
 }
 /// <summary>
 /// Add a section object to the list of sections
 /// Each section object should be a new instance of ReportSection
 /// </summary>
 /// <param name="section">The section info to add</param>
 /// <returns>The number of sections</returns>
 public virtual int AddSection(ReportSection section)
 {
     return this.sections.Add(section);
 }