# C1.Report.BehaviorOptions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_BehaviorOptions" data-uid="C1.Report.BehaviorOptions" class="text-break">BehaviorOptions Class
</h1>
  <div class="markdown level0 summary"><p>Specifies compatibility options for a <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a>.
Properties in this class can be used to control compatibility
with older versions and with <b>C1Report</b>.</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"><span class="xref">BehaviorOptions</span></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_BehaviorOptions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BehaviorOptions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BehaviorOptions</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_BehaviorOptions_AddOperatorAsInC1Report" data-uid="C1.Report.BehaviorOptions.AddOperatorAsInC1Report">
          <a class="xref" href="C1.Report.BehaviorOptions.AddOperatorAsInC1Report.html#C1_Report_BehaviorOptions_AddOperatorAsInC1Report">AddOperatorAsInC1Report</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether ADD script operator should work as in C1Report.
The default is false. Setting this to true improves compatibility with C1Report.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BehaviorOptions_AllowHorizontalSplitting" data-uid="C1.Report.BehaviorOptions.AllowHorizontalSplitting">
          <a class="xref" href="C1.Report.BehaviorOptions.AllowHorizontalSplitting.html#C1_Report_BehaviorOptions_AllowHorizontalSplitting">AllowHorizontalSplitting</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the report content can be split
when it is too wide to fit in the horizontal space available on the page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BehaviorOptions_EnableAggregatesOnReportFields" data-uid="C1.Report.BehaviorOptions.EnableAggregatesOnReportFields">
          <a class="xref" href="C1.Report.BehaviorOptions.EnableAggregatesOnReportFields.html#C1_Report_BehaviorOptions_EnableAggregatesOnReportFields">EnableAggregatesOnReportFields</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether report fields can be used in aggregate functions.
The default is false. Set this property to true to improve compatibility with C1Report.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BehaviorOptions_FireOnFormatForEachInstanceOfRepeatedGroupSection" data-uid="C1.Report.BehaviorOptions.FireOnFormatForEachInstanceOfRepeatedGroupSection">
          <a class="xref" href="C1.Report.BehaviorOptions.FireOnFormatForEachInstanceOfRepeatedGroupSection.html#C1_Report_BehaviorOptions_FireOnFormatForEachInstanceOfRepeatedGroupSection">FireOnFormatForEachInstanceOfRepeatedGroupSection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the OnFormat script is fired
for each instance of a repeated group footer section, or just once for the
first instance. Applies only to groups with Repeat property set to true.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BehaviorOptions_IgnoreInvisibleFieldsInGrowShrinkSections" data-uid="C1.Report.BehaviorOptions.IgnoreInvisibleFieldsInGrowShrinkSections">
          <a class="xref" href="C1.Report.BehaviorOptions.IgnoreInvisibleFieldsInGrowShrinkSections.html#C1_Report_BehaviorOptions_IgnoreInvisibleFieldsInGrowShrinkSections">IgnoreInvisibleFieldsInGrowShrinkSections</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether invisible fields should be ignored
when calculating the heights of CanGrow/CanShrink sections.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BehaviorOptions_IgnoreMarginsForEmptyFields" data-uid="C1.Report.BehaviorOptions.IgnoreMarginsForEmptyFields">
          <a class="xref" href="C1.Report.BehaviorOptions.IgnoreMarginsForEmptyFields.html#C1_Report_BehaviorOptions_IgnoreMarginsForEmptyFields">IgnoreMarginsForEmptyFields</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether for empty fields with
<a class="xref" href="C1.Report.FieldBase.AutoHeight.html#C1_Report_FieldBase_AutoHeight">AutoHeight</a> or <a class="xref" href="C1.Report.FieldBase.AutoWidth.html#C1_Report_FieldBase_AutoWidth">AutoWidth</a>
set to <a class="xref" href="C1.Report.AutoSizeBehavior.html#C1_Report_AutoSizeBehavior_CanShrink">CanShrink</a>,
margins and borders will have zero heights or widths in
the generated report layout. The default is false. Setting this to
true improves compatibility with C1Report.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BehaviorOptions_IncreaseSubSectionHeightToFitFields" data-uid="C1.Report.BehaviorOptions.IncreaseSubSectionHeightToFitFields">
          <a class="xref" href="C1.Report.BehaviorOptions.IncreaseSubSectionHeightToFitFields.html#C1_Report_BehaviorOptions_IncreaseSubSectionHeightToFitFields">IncreaseSubSectionHeightToFitFields</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the height of <a class="xref" href="C1.Report.SubSection.html">SubSection</a>
should be increased to fit all fields. This setting is usefull when report generated at runtime.
The default is false. Setting this to true improves compatibility with C1Report.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BehaviorOptions_UseDefaultPrinterPaperSize" data-uid="C1.Report.BehaviorOptions.UseDefaultPrinterPaperSize">
          <a class="xref" href="C1.Report.BehaviorOptions.UseDefaultPrinterPaperSize.html#C1_Report_BehaviorOptions_UseDefaultPrinterPaperSize">UseDefaultPrinterPaperSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the paper size of default printer is used
when <a class="xref" href="C1.Report.Layout.PaperSize.html#C1_Report_Layout_PaperSize">PaperSize</a> is <b>Custom</b> and both <a class="xref" href="C1.Report.Layout.CustomWidth.html#C1_Report_Layout_CustomWidth">CustomWidth</a> and <a class="xref" href="C1.Report.Layout.CustomHeight.html#C1_Report_Layout_CustomHeight">CustomHeight</a>
are <b>0</b> (unspecified).</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_BehaviorOptions_AssignFrom_C1_Report_BehaviorOptions_" data-uid="C1.Report.BehaviorOptions.AssignFrom(C1.Report.BehaviorOptions)">
          <a class="xref" href="C1.Report.BehaviorOptions.AssignFrom.html#C1_Report_BehaviorOptions_AssignFrom_C1_Report_BehaviorOptions_">AssignFrom(BehaviorOptions)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.Report.BehaviorOptions.html">BehaviorOptions</a> to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BehaviorOptions_Reset" data-uid="C1.Report.BehaviorOptions.Reset">
          <a class="xref" href="C1.Report.BehaviorOptions.Reset.html#C1_Report_BehaviorOptions_Reset">Reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets all properties to their default values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BehaviorOptions_ToString" data-uid="C1.Report.BehaviorOptions.ToString">
          <a class="xref" href="C1.Report.BehaviorOptions.ToString.html#C1_Report_BehaviorOptions_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
