# GrapeCity.Documents.Layout.LayoutView

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Layout_LayoutView" data-uid="GrapeCity.Documents.Layout.LayoutView" class="text-break">LayoutView Class
</h1>
  <div class="markdown level0 summary"><p>Represents a transformed surface with a set of <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</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">LayoutView</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_LayoutView_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class LayoutView</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class LayoutView</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="GrapeCity_Documents_Layout_LayoutView_BaseView" data-uid="GrapeCity.Documents.Layout.LayoutView.BaseView">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.BaseView.html#GrapeCity_Documents_Layout_LayoutView_BaseView">BaseView</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> to be used as the base for the current view's relative transformation.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_Frozen" data-uid="GrapeCity.Documents.Layout.LayoutView.Frozen">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.Frozen.html#GrapeCity_Documents_Layout_LayoutView_Frozen">Frozen</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating if the <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> does not allow any modifications.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_Height" data-uid="GrapeCity.Documents.Layout.LayoutView.Height">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.Height.html#GrapeCity_Documents_Layout_LayoutView_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the height of the view rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_Host" data-uid="GrapeCity.Documents.Layout.LayoutView.Host">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.Host.html#GrapeCity_Documents_Layout_LayoutView_Host">Host</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the owner <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.html">LayoutHost</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_InverseTransform" data-uid="GrapeCity.Documents.Layout.LayoutView.InverseTransform">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.InverseTransform.html#GrapeCity_Documents_Layout_LayoutView_InverseTransform">InverseTransform</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the inverted transformation matrix.</p>
<p><a class="xref" href="GrapeCity.Documents.Layout.LayoutView.InverseTransform.html#GrapeCity_Documents_Layout_LayoutView_InverseTransform">InverseTransform</a> is automatically updated when setting the <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.Transform.html#GrapeCity_Documents_Layout_LayoutView_Transform">Transform</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_RelativeTransform" data-uid="GrapeCity.Documents.Layout.LayoutView.RelativeTransform">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.RelativeTransform.html#GrapeCity_Documents_Layout_LayoutView_RelativeTransform">RelativeTransform</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the transformation matrix relative to the <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.BaseView.html#GrapeCity_Documents_Layout_LayoutView_BaseView">BaseView</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_Tag" data-uid="GrapeCity.Documents.Layout.LayoutView.Tag">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.Tag.html#GrapeCity_Documents_Layout_LayoutView_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.LayoutView.html">LayoutView</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_Transform" data-uid="GrapeCity.Documents.Layout.LayoutView.Transform">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.Transform.html#GrapeCity_Documents_Layout_LayoutView_Transform">Transform</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the transformation matrix for the <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_Width" data-uid="GrapeCity.Documents.Layout.LayoutView.Width">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.Width.html#GrapeCity_Documents_Layout_LayoutView_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of the view rectangle.</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_LayoutView_ApplyOffset_GrapeCity_Documents_Layout_LayoutView_System_Single_System_Single_" data-uid="GrapeCity.Documents.Layout.LayoutView.ApplyOffset(GrapeCity.Documents.Layout.LayoutView,System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.ApplyOffset.html#GrapeCity_Documents_Layout_LayoutView_ApplyOffset_GrapeCity_Documents_Layout_LayoutView_System_Single_System_Single_">ApplyOffset(LayoutView, float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves the current <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> to a new position relative to another <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_AsRectF" data-uid="GrapeCity.Documents.Layout.LayoutView.AsRectF">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.AsRectF.html#GrapeCity_Documents_Layout_LayoutView_AsRectF">AsRectF()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a> with the same Width and Height as the view rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_CreateContour_System_Object_" data-uid="GrapeCity.Documents.Layout.LayoutView.CreateContour(System.Object)">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.CreateContour.html#GrapeCity_Documents_Layout_LayoutView_CreateContour_System_Object_">CreateContour(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="GrapeCity.Documents.Layout.Contour.html">Contour</a> and associates it with the <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_CreatePoint_System_Single_System_Single_System_Single_System_Single_" data-uid="GrapeCity.Documents.Layout.LayoutView.CreatePoint(System.Single,System.Single,System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.CreatePoint.html#GrapeCity_Documents_Layout_LayoutView_CreatePoint_System_Single_System_Single_System_Single_System_Single_">CreatePoint(float, float, float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a point associated with the <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> to be used as an anchor for <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>s.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_CreateRect_System_Object_" data-uid="GrapeCity.Documents.Layout.LayoutView.CreateRect(System.Object)">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.CreateRect.html#GrapeCity_Documents_Layout_LayoutView_CreateRect_System_Object_">CreateRect(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a> and associates it with the <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_DetachFromHost" data-uid="GrapeCity.Documents.Layout.LayoutView.DetachFromHost">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.DetachFromHost.html#GrapeCity_Documents_Layout_LayoutView_DetachFromHost">DetachFromHost()</a>
        </td>
        <td class="markdown level1 summary"><p>Detaches the <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> from its owner <a class="xref" href="GrapeCity.Documents.Layout.LayoutHost.html">LayoutHost</a>
and removes all constraints referencing objects on the <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_GetContentRectangleF_System_Boolean_" data-uid="GrapeCity.Documents.Layout.LayoutView.GetContentRectangleF(System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.GetContentRectangleF.html#GrapeCity_Documents_Layout_LayoutView_GetContentRectangleF_System_Boolean_">GetContentRectangleF(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the minimal <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a> that contains all non-empty <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a>s, excluding the view itself.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_MapToView_GrapeCity_Documents_Layout_LayoutView_System_Drawing_PointF_" data-uid="GrapeCity.Documents.Layout.LayoutView.MapToView(GrapeCity.Documents.Layout.LayoutView,System.Drawing.PointF)">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.MapToView.html#GrapeCity_Documents_Layout_LayoutView_MapToView_GrapeCity_Documents_Layout_LayoutView_System_Drawing_PointF_">MapToView(LayoutView, PointF)</a>
        </td>
        <td class="markdown level1 summary"><p>Transforms a point from the current <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> coordinates to other view's coordinates.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_MapToView_GrapeCity_Documents_Layout_LayoutView_System_Drawing_PointF___" data-uid="GrapeCity.Documents.Layout.LayoutView.MapToView(GrapeCity.Documents.Layout.LayoutView,System.Drawing.PointF[])">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.MapToView.html#GrapeCity_Documents_Layout_LayoutView_MapToView_GrapeCity_Documents_Layout_LayoutView_System_Drawing_PointF___">MapToView(LayoutView, PointF[])</a>
        </td>
        <td class="markdown level1 summary"><p>Transforms the array of points from the current <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> coordinates to other view's coordinates.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_LayoutView_SetRelativeTransform_GrapeCity_Documents_Layout_LayoutView_GrapeCity_Documents_Common_Matrix_" data-uid="GrapeCity.Documents.Layout.LayoutView.SetRelativeTransform(GrapeCity.Documents.Layout.LayoutView,GrapeCity.Documents.Common.Matrix)">
          <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.SetRelativeTransform.html#GrapeCity_Documents_Layout_LayoutView_SetRelativeTransform_GrapeCity_Documents_Layout_LayoutView_GrapeCity_Documents_Common_Matrix_">SetRelativeTransform(LayoutView, Matrix)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the transformation matrix relative to other <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
