# C1.Report.SubSection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_SubSection" data-uid="C1.Report.SubSection" class="text-break">SubSection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a band within a <a class="xref" href="C1.Report.Section.html">Section</a>.
Each <a class="xref" href="C1.Report.Section.html">Section</a> contains at least one SubSection.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Report.ReportObject.html">ReportObject</a></div>
    <div class="level2"><a class="xref" href="C1.Report.VisualReportObject.html">VisualReportObject</a></div>
    <div class="level3"><span class="xref">SubSection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Report.IScriptContextProvider.html">IScriptContextProvider</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Report.html">C1.Report</a></h6>
  <h6><strong>Assembly</strong>: C1.Report.dll</h6>
  <h5 id="C1_Report_SubSection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SubSection : VisualReportObject, IScriptContextProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SubSection
    Inherits VisualReportObject
    Implements IScriptContextProvider</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Report_SubSection_AutoHeight" data-uid="C1.Report.SubSection.AutoHeight">
          <a class="xref" href="C1.Report.SubSection.AutoHeight.html#C1_Report_SubSection_AutoHeight">AutoHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value determining how the height of the sub-section changes depending on its content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_Calculated" data-uid="C1.Report.SubSection.Calculated">
          <a class="xref" href="C1.Report.SubSection.Calculated.html#C1_Report_SubSection_Calculated">Calculated</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the current sub-section has already been calculated and its
<a class="xref" href="C1.Report.SubSection.RenderHeight.html#C1_Report_SubSection_RenderHeight">RenderHeight</a> property contains a valid value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_Fields" data-uid="C1.Report.SubSection.Fields">
          <a class="xref" href="C1.Report.SubSection.Fields.html#C1_Report_SubSection_Fields">Fields</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a collection of all fields in this <a class="xref" href="C1.Report.SubSection.html">SubSection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_ForcePageBreak" data-uid="C1.Report.SubSection.ForcePageBreak">
          <a class="xref" href="C1.Report.SubSection.ForcePageBreak.html#C1_Report_SubSection_ForcePageBreak">ForcePageBreak</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value determining whether page breaks should be inserted before and/or after the sub-section.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_Height" data-uid="C1.Report.SubSection.Height">
          <a class="xref" href="C1.Report.SubSection.Height.html#C1_Report_SubSection_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Report.SubSection.html">SubSection</a> height, in twips.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_Index" data-uid="C1.Report.SubSection.Index">
          <a class="xref" href="C1.Report.SubSection.Index.html#C1_Report_SubSection_Index">Index</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the <a class="xref" href="C1.Report.SubSection.html">SubSection</a> in the containing <a class="xref" href="C1.Report.Section.SubSections.html#C1_Report_Section_SubSections">SubSections</a> collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_ParentReport" data-uid="C1.Report.SubSection.ParentReport">
          <a class="xref" href="C1.Report.SubSection.ParentReport.html#C1_Report_SubSection_ParentReport">ParentReport</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a> object containing this object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_ParentSection" data-uid="C1.Report.SubSection.ParentSection">
          <a class="xref" href="C1.Report.SubSection.ParentSection.html#C1_Report_SubSection_ParentSection">ParentSection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.Report.Section.html">Section</a> object owning this <a class="xref" href="C1.Report.SubSection.html">SubSection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_PrintAtPageBottom" data-uid="C1.Report.SubSection.PrintAtPageBottom">
          <a class="xref" href="C1.Report.SubSection.PrintAtPageBottom.html#C1_Report_SubSection_PrintAtPageBottom">PrintAtPageBottom</a>
        </td>
        <td class="markdown level1 summary"><p>For master report's sub-sections only, gets or sets a value
indicating whether the current sub section should print at the bottom
of the page immediately above the page footer, rather than right
below the detail. The default is <b>false</b>.</p>
<p>
This property is ignored for non-footer sections or for footers
of sub-reports.
</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_RenderHeight" data-uid="C1.Report.SubSection.RenderHeight">
          <a class="xref" href="C1.Report.SubSection.RenderHeight.html#C1_Report_SubSection_RenderHeight">RenderHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the height of the sub-section after the <a class="xref" href="C1.Report.SubSection.AutoHeight.html#C1_Report_SubSection_AutoHeight">AutoHeight</a>
property has been applied to the section.
Getting this property can throw an exception if the height of sections was not calculated yet,
for example if you access the RenderHeight of the report footer while the report header is being rendered.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_SplitBehavior" data-uid="C1.Report.SubSection.SplitBehavior">
          <a class="xref" href="C1.Report.SubSection.SplitBehavior.html#C1_Report_SubSection_SplitBehavior">SplitBehavior</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value determining how the sub-section behaves
when it is too high to fit in the vertical space available on the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_Visible" data-uid="C1.Report.SubSection.Visible">
          <a class="xref" href="C1.Report.SubSection.Visible.html#C1_Report_SubSection_Visible">Visible</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether the <a class="xref" href="C1.Report.SubSection.html">SubSection</a> will be rendered in the report.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Report_SubSection_AfterRender" data-uid="C1.Report.SubSection.AfterRender">
          <a class="xref" href="C1.Report.SubSection.AfterRender.html#C1_Report_SubSection_AfterRender">AfterRender()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when report rendering finished.
Can be used to finalize object after rendering.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_AssignFrom_C1_Report_ReportObject_System_Boolean_" data-uid="C1.Report.SubSection.AssignFrom(C1.Report.ReportObject,System.Boolean)">
          <a class="xref" href="C1.Report.SubSection.AssignFrom.html#C1_Report_SubSection_AssignFrom_C1_Report_ReportObject_System_Boolean_">AssignFrom(ReportObject, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.Report.SubSection.html">SubSection</a> to the current object.
This method does not copy fields belongs to source SubSection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_BeforeRender" data-uid="C1.Report.SubSection.BeforeRender">
          <a class="xref" href="C1.Report.SubSection.BeforeRender.html#C1_Report_SubSection_BeforeRender">BeforeRender()</a>
        </td>
        <td class="markdown level1 summary"><p>Called where report rendering starts.
Can be used to initialize object before rendering.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_CreateSame" data-uid="C1.Report.SubSection.CreateSame">
          <a class="xref" href="C1.Report.SubSection.CreateSame.html#C1_Report_SubSection_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates instance of the same type as current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubSection_GetPropsTable" data-uid="C1.Report.SubSection.GetPropsTable">
          <a class="xref" href="C1.Report.SubSection.GetPropsTable.html#C1_Report_SubSection_GetPropsTable">GetPropsTable()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
