# C1.Report.SubreportField

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_SubreportField" data-uid="C1.Report.SubreportField" class="text-break">SubreportField Class
</h1>
  <div class="markdown level0 summary"><p>Field used to show subreports in <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a>.</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"><a class="xref" href="C1.Report.FieldBase.html">FieldBase</a></div>
    <div class="level4"><span class="xref">SubreportField</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Report.IScriptContextProvider.html">IScriptContextProvider</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</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_SubreportField_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SubreportField : FieldBase, IScriptContextProvider, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SubreportField
    Inherits FieldBase
    Implements IScriptContextProvider, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Report_SubreportField__ctor" data-uid="C1.Report.SubreportField.#ctor">
          <a class="xref" href="C1.Report.SubreportField.-ctor.html#C1_Report_SubreportField__ctor">SubreportField()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Report.SubreportField.html">SubreportField</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_SubreportField_OutlinesVisible" data-uid="C1.Report.SubreportField.OutlinesVisible">
          <a class="xref" href="C1.Report.SubreportField.OutlinesVisible.html#C1_Report_SubreportField_OutlinesVisible">OutlinesVisible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the outlines generated by this subreport
should be included in the master report's outline tree.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_ParameterValues" data-uid="C1.Report.SubreportField.ParameterValues">
          <a class="xref" href="C1.Report.SubreportField.ParameterValues.html#C1_Report_SubreportField_ParameterValues">ParameterValues</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.ReportParameterValues.html">ReportParameterValues</a> collection
containing the list of named values that will be assigned to the parameters of the subreport.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_Subreport" data-uid="C1.Report.SubreportField.Subreport">
          <a class="xref" href="C1.Report.SubreportField.Subreport.html#C1_Report_SubreportField_Subreport">Subreport</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a reference to another <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a> object to be rendered within this <a class="xref" href="C1.Report.SubreportField.html">SubreportField</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_SubreportFilter" data-uid="C1.Report.SubreportField.SubreportFilter">
          <a class="xref" href="C1.Report.SubreportField.SubreportFilter.html#C1_Report_SubreportField_SubreportFilter">SubreportFilter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Report.ScriptStringValue.html">ScriptStringValue</a> yielding the filter
that will be applied to the main data source of the subreport.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_SubreportHasData" data-uid="C1.Report.SubreportField.SubreportHasData">
          <a class="xref" href="C1.Report.SubreportField.SubreportHasData.html#C1_Report_SubreportField_SubreportHasData">SubreportHasData</a>
        </td>
        <td class="markdown level1 summary"><p>Returns whether a subreport has data and suppresses rendering if it doesn't.</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_SubreportField_AfterRender" data-uid="C1.Report.SubreportField.AfterRender">
          <a class="xref" href="C1.Report.SubreportField.AfterRender.html#C1_Report_SubreportField_AfterRender">AfterRender()</a>
        </td>
        <td class="markdown level1 summary"><p>Called where report rendering finish.
Can be used to finalize object after rendering.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_AssignFrom_C1_Report_ReportObject_System_Boolean_" data-uid="C1.Report.SubreportField.AssignFrom(C1.Report.ReportObject,System.Boolean)">
          <a class="xref" href="C1.Report.SubreportField.AssignFrom.html#C1_Report_SubreportField_AssignFrom_C1_Report_ReportObject_System_Boolean_">AssignFrom(ReportObject, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies properties from another object into this object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_BeforeRender" data-uid="C1.Report.SubreportField.BeforeRender">
          <a class="xref" href="C1.Report.SubreportField.BeforeRender.html#C1_Report_SubreportField_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_SubreportField_GetContentAutoHeight_System_Double_" data-uid="C1.Report.SubreportField.GetContentAutoHeight(System.Double)">
          <a class="xref" href="C1.Report.SubreportField.GetContentAutoHeight.html#C1_Report_SubreportField_GetContentAutoHeight_System_Double_">GetContentAutoHeight(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate the height of object on basis of its content,
this method is called when field can grow or shrink vertically.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_GetContentAutoSize_System_Double__System_Double__" data-uid="C1.Report.SubreportField.GetContentAutoSize(System.Double@,System.Double@)">
          <a class="xref" href="C1.Report.SubreportField.GetContentAutoSize.html#C1_Report_SubreportField_GetContentAutoSize_System_Double__System_Double__">GetContentAutoSize(out double, out double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate sizes of object on basis of its content,
this method is called when field can grow or shrink vertically and horizontally.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_GetContentAutoWidth_System_Double_" data-uid="C1.Report.SubreportField.GetContentAutoWidth(System.Double)">
          <a class="xref" href="C1.Report.SubreportField.GetContentAutoWidth.html#C1_Report_SubreportField_GetContentAutoWidth_System_Double_">GetContentAutoWidth(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate the width of object on basis of its content,
this method is called when field can grow or shrink horizontally.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_GetDefAutoHeight" data-uid="C1.Report.SubreportField.GetDefAutoHeight">
          <a class="xref" href="C1.Report.SubreportField.GetDefAutoHeight.html#C1_Report_SubreportField_GetDefAutoHeight">GetDefAutoHeight()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_GetPropsTable" data-uid="C1.Report.SubreportField.GetPropsTable">
          <a class="xref" href="C1.Report.SubreportField.GetPropsTable.html#C1_Report_SubreportField_GetPropsTable">GetPropsTable()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_InitStyle" data-uid="C1.Report.SubreportField.InitStyle">
          <a class="xref" href="C1.Report.SubreportField.InitStyle.html#C1_Report_SubreportField_InitStyle">InitStyle()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_InternalBuildBrick_C1_Report_Rendering_SubSectionBrick_" data-uid="C1.Report.SubreportField.InternalBuildBrick(C1.Report.Rendering.SubSectionBrick)">
          <a class="xref" href="C1.Report.SubreportField.InternalBuildBrick.html#C1_Report_SubreportField_InternalBuildBrick_C1_Report_Rendering_SubSectionBrick_">InternalBuildBrick(SubSectionBrick)</a>
        </td>
        <td class="markdown level1 summary"><p>This method should be overriden in descendant classes like Field, BarCodeField, ChartField and so on.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_InternalRefreshBrick_C1_Report_Rendering_FieldBrickBase_" data-uid="C1.Report.SubreportField.InternalRefreshBrick(C1.Report.Rendering.FieldBrickBase)">
          <a class="xref" href="C1.Report.SubreportField.InternalRefreshBrick.html#C1_Report_SubreportField_InternalRefreshBrick_C1_Report_Rendering_FieldBrickBase_">InternalRefreshBrick(FieldBrickBase)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_SubreportField_ResetState" data-uid="C1.Report.SubreportField.ResetState">
          <a class="xref" href="C1.Report.SubreportField.ResetState.html#C1_Report_SubreportField_ResetState">ResetState()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when FlexReport starts calculation of the section containing this FieldBase.
Resets internal state of the field.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
