# GrapeCity.Documents.Layout.LayoutHost.CreateView

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Layout_LayoutHost_CreateView_" data-uid="GrapeCity.Documents.Layout.LayoutHost.CreateView*">CreateView Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Layout_LayoutHost_CreateView_" data-uid="GrapeCity.Documents.Layout.LayoutHost.CreateView*"></a>
<h4 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)">CreateView(float, float, Matrix, object)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LayoutView CreateView(float width, float height, Matrix transform = null, object tag = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateView(width As Single, height As Single, Optional transform As Matrix = Nothing, Optional tag As Object = Nothing) As LayoutView</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the view rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the view rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Common.Matrix.html">Matrix</a></td>
      <td><span class="parametername">transform</span></td>
      <td><p>The transformation matrix for the <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">tag</span></td>
      <td><p>The object that contains data about the <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a></td>
      <td><p>The created <a class="xref" href="GrapeCity.Documents.Layout.LayoutView.html">LayoutView</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
