# GrapeCity.Documents.Layout.LayoutHost.ThrowIfNotFit

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Layout_LayoutHost_ThrowIfNotFit_" data-uid="GrapeCity.Documents.Layout.LayoutHost.ThrowIfNotFit*">ThrowIfNotFit Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Layout_LayoutHost_ThrowIfNotFit_" data-uid="GrapeCity.Documents.Layout.LayoutHost.ThrowIfNotFit*"></a>
<h4 id="GrapeCity_Documents_Layout_LayoutHost_ThrowIfNotFit" data-uid="GrapeCity.Documents.Layout.LayoutHost.ThrowIfNotFit">ThrowIfNotFit</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether a <a class="xref" href="GrapeCity.Documents.Layout.LayoutException.html">LayoutException</a> should be thrown
if the width or height of some <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a> becomes negative.</p>
<p>The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool ThrowIfNotFit { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property ThrowIfNotFit As Boolean</code></pre>
</div>
</div>
