# GrapeCity.Documents.Layout.LayoutHost

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Layout_LayoutHost" data-uid="GrapeCity.Documents.Layout.LayoutHost" class="text-break">LayoutHost Class
</h1>
  <div class="markdown level0 summary"><p>Represents the host and origin of a coordinate system for <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> objects.</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">LayoutHost</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Layout.html">GrapeCity.Documents.Layout</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Layout_LayoutHost_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class LayoutHost</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class LayoutHost</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="GrapeCity_Documents_Layout_LayoutHost__ctor_System_Object_" data-uid="GrapeCity.Documents.Layout.LayoutHost.#ctor(System.Object)">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.-ctor.html#GrapeCity_Documents_Layout_LayoutHost__ctor_System_Object_">LayoutHost(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.html">LayoutHost</a> object.</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="GrapeCity_Documents_Layout_LayoutHost_Dirty" data-uid="GrapeCity.Documents.Layout.LayoutHost.Dirty">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.Dirty.html#GrapeCity_Documents_Layout_LayoutHost_Dirty">Dirty</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating if the <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.html">LayoutHost</a> contains rectangles with unresolved changes.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutHost_Frozen" data-uid="GrapeCity.Documents.Layout.LayoutHost.Frozen">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.Frozen.html#GrapeCity_Documents_Layout_LayoutHost_Frozen">Frozen</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating if the <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.html">LayoutHost</a> does not allow any modifications or recalculations.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutHost_Tag" data-uid="GrapeCity.Documents.Layout.LayoutHost.Tag">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.Tag.html#GrapeCity_Documents_Layout_LayoutHost_Tag">Tag</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the object that contains data about the <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.html">LayoutHost</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutHost_ThrowIfNotFit" data-uid="GrapeCity.Documents.Layout.LayoutHost.ThrowIfNotFit">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.ThrowIfNotFit.html#GrapeCity_Documents_Layout_LayoutHost_ThrowIfNotFit">ThrowIfNotFit</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutHost_ZeroTolerance" data-uid="GrapeCity.Documents.Layout.LayoutHost.ZeroTolerance">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.ZeroTolerance.html#GrapeCity_Documents_Layout_LayoutHost_ZeroTolerance">ZeroTolerance</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value for which all absolute numbers smaller than are considered equal to zero.</p>
<p>Possible values are between 0.00001f and 1f. The default is 0.01f.</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="GrapeCity_Documents_Layout_LayoutHost_CreateView_System_Single_System_Single_GrapeCity_Documents_Common_Matrix_System_Object_" data-uid="GrapeCity.Documents.Layout.LayoutHost.CreateView(System.Single,System.Single,GrapeCity.Documents.Common.Matrix,System.Object)">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.CreateView.html#GrapeCity_Documents_Layout_LayoutHost_CreateView_System_Single_System_Single_GrapeCity_Documents_Common_Matrix_System_Object_">CreateView(float, float, Matrix, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> and associates it with the <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.html">LayoutHost</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutHost_Freeze" data-uid="GrapeCity.Documents.Layout.LayoutHost.Freeze">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.Freeze.html#GrapeCity_Documents_Layout_LayoutHost_Freeze">Freeze()</a>
        </td>
        <td class="markdown level1 summary"><p>Releases all memory resources required for recalculating the layout.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutHost_PerformLayout" data-uid="GrapeCity.Documents.Layout.LayoutHost.PerformLayout">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.PerformLayout.html#GrapeCity_Documents_Layout_LayoutHost_PerformLayout">PerformLayout()</a>
        </td>
        <td class="markdown level1 summary"><p>Recalculates the layout of all &quot;dirty&quot; <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a> objects in the <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.html">LayoutHost</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="GrapeCity.Documents.Drawing.TableRenderer.html">TableRenderer</a></div>
  </div>

</div>
