# GrapeCity.ActiveReports.SectionReport.Sections

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_SectionReport_Sections_" data-uid="GrapeCity.ActiveReports.SectionReport.Sections*">Sections Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_SectionReport_Sections_" data-uid="GrapeCity.ActiveReports.SectionReport.Sections*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_Sections" data-uid="GrapeCity.ActiveReports.SectionReport.Sections">Sections</h4>
<div class="markdown level1 summary"><p>Gets value representing a sections collection of the report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public SectionCollection Sections { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.SectionCollection.html">SectionCollection</a></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.html">SectionCollection</a> value representing a collection of report sections such as Detail, PageHeader, PageFooter.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_Sections_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Empty collection by default. Should contain only one <a class="xref" href="GrapeCity.ActiveReports.SectionReportModel.Detail.html">Detail</a> instance.</p>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReport_Sections_examples">Examples</h5>
<pre><code class="lang-csharp">var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.Document.Printer.PrinterName = String.Empty;
detailSection = new GrapeCity.ActiveReports.SectionReportModel.Detail{Name = "Details"};
detailSection.BackColor = System.Drawing.Color.Transparent;
detailSection.CanGrow = true;
detailSection.CanShrink = false;
detailSection.Controls.Clear();
detailSection.Height = 2.0f;
sectionReport.Sections.Add(detailSection);
sectionReport.Sections.InsertPageHF();
sectionReport.Run();</code></pre>

</div>
