# C1.Report.BehaviorOptions.IgnoreMarginsForEmptyFields

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_BehaviorOptions_IgnoreMarginsForEmptyFields_" data-uid="C1.Report.BehaviorOptions.IgnoreMarginsForEmptyFields*">IgnoreMarginsForEmptyFields Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_BehaviorOptions_IgnoreMarginsForEmptyFields_" data-uid="C1.Report.BehaviorOptions.IgnoreMarginsForEmptyFields*"></a>
<h4 id="C1_Report_BehaviorOptions_IgnoreMarginsForEmptyFields" data-uid="C1.Report.BehaviorOptions.IgnoreMarginsForEmptyFields">IgnoreMarginsForEmptyFields</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Description(&quot;BehaviorOptions.IgnoreMarginsForEmptyFields&quot;, &quot;Specifies whether for empty fields with FieldBase.AutoHeight or FieldBase.AutoWidth set to AutoSizeBehavior.CanShrink, 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.&quot;)]
public bool IgnoreMarginsForEmptyFields { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Description(&quot;BehaviorOptions.IgnoreMarginsForEmptyFields&quot;, &quot;Specifies whether for empty fields with FieldBase.AutoHeight or FieldBase.AutoWidth set to AutoSizeBehavior.CanShrink, 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.&quot;)&gt;
Public Property IgnoreMarginsForEmptyFields As Boolean</code></pre>
</div>
</div>
