# C1.Web.Mvc.Fluent.GridLayoutBuilder-2

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_GridLayoutBuilder_2" data-uid="C1.Web.Mvc.Fluent.GridLayoutBuilder`2" class="text-break">GridLayoutBuilder&lt;TControl, TBuilder&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Defines a builder to configurate <a class="xref" href="C1.Web.Mvc.GridLayout.html">GridLayout</a>.</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">HideObjectMembers</span></div>
    <div class="level2"><a class="xref" href="C1.Web.Mvc.Fluent.BaseBuilder-2.html">BaseBuilder</a>&lt;TControl, TBuilder&gt;</div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.Fluent.ComponentBuilder-2.html">ComponentBuilder</a>&lt;TControl, TBuilder&gt;</div>
    <div class="level4"><a class="xref" href="C1.Web.Mvc.Fluent.ServiceBuilder-2.html">ServiceBuilder</a>&lt;TControl, TBuilder&gt;</div>
    <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.LayoutBaseBuilder-2.html">LayoutBaseBuilder</a>&lt;TControl, TBuilder&gt;</div>
    <div class="level6"><span class="xref">GridLayoutBuilder&lt;TControl, TBuilder&gt;</span></div>
      <div class="level7"><a class="xref" href="C1.Web.Mvc.Fluent.AutoGridLayoutBuilder.html">AutoGridLayoutBuilder</a></div>
      <div class="level7"><a class="xref" href="C1.Web.Mvc.Fluent.ManualGridLayoutBuilder.html">ManualGridLayoutBuilder</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.html.ihtmlcontent">IHtmlContent</a></div>
    <div><a class="xref" href="C1.Web.Mvc.Fluent.ITemplateBuilder-1.html">ITemplateBuilder</a>&lt;TBuilder&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.Fluent.html">C1.Web.Mvc.Fluent</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_Fluent_GridLayoutBuilder_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class GridLayoutBuilder&lt;TControl, TBuilder&gt; : LayoutBaseBuilder&lt;TControl, TBuilder&gt;, IHtmlContent, ITemplateBuilder&lt;TBuilder&gt; where TControl : GridLayout where TBuilder : GridLayoutBuilder&lt;TControl, TBuilder&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class GridLayoutBuilder(Of TControl As GridLayout, TBuilder As GridLayoutBuilder(Of TControl, TBuilder))
    Inherits LayoutBaseBuilder(Of TControl, TBuilder)
    Implements IHtmlContent, ITemplateBuilder(Of TBuilder)</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TControl</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="parametername">TBuilder</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <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="C1_Web_Mvc_Fluent_GridLayoutBuilder_2__ctor__0_" data-uid="C1.Web.Mvc.Fluent.GridLayoutBuilder`2.#ctor(`0)">
          <a class="xref" href="C1.Web.Mvc.Fluent.GridLayoutBuilder-2.-ctor.html#C1_Web_Mvc_Fluent_GridLayoutBuilder_2__ctor__0_">GridLayoutBuilder(TControl)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Fluent.GridLayoutBuilder-2.html">GridLayoutBuilder&lt;TControl, TBuilder&gt;</a> instance to configurate <code class="paramref">service</code>.</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="C1_Web_Mvc_Fluent_GridLayoutBuilder_2_CellSize_System_Int32_" data-uid="C1.Web.Mvc.Fluent.GridLayoutBuilder`2.CellSize(System.Int32)">
          <a class="xref" href="C1.Web.Mvc.Fluent.GridLayoutBuilder-2.CellSize.html#C1_Web_Mvc_Fluent_GridLayoutBuilder_2_CellSize_System_Int32_">CellSize(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.GridLayout.CellSize.html#C1_Web_Mvc_GridLayout_CellSize">CellSize</a>.
Sets the size of the cell in the grid layout. It is in pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_GridLayoutBuilder_2_CellSpacing_System_Int32_" data-uid="C1.Web.Mvc.Fluent.GridLayoutBuilder`2.CellSpacing(System.Int32)">
          <a class="xref" href="C1.Web.Mvc.Fluent.GridLayoutBuilder-2.CellSpacing.html#C1_Web_Mvc_Fluent_GridLayoutBuilder_2_CellSpacing_System_Int32_">CellSpacing(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.GridLayout.CellSpacing.html#C1_Web_Mvc_GridLayout_CellSpacing">CellSpacing</a>.
Sets the spacing of the cell in the grid layout. It is in pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_GridLayoutBuilder_2_GroupSpacing_System_Int32_" data-uid="C1.Web.Mvc.Fluent.GridLayoutBuilder`2.GroupSpacing(System.Int32)">
          <a class="xref" href="C1.Web.Mvc.Fluent.GridLayoutBuilder-2.GroupSpacing.html#C1_Web_Mvc_Fluent_GridLayoutBuilder_2_GroupSpacing_System_Int32_">GroupSpacing(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.GridLayout.GroupSpacing.html#C1_Web_Mvc_GridLayout_GroupSpacing">GroupSpacing</a>.
Sets the spacing of the group in the grid layout. It is in pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_GridLayoutBuilder_2_MaxRowsOrColumns_System_Int32_" data-uid="C1.Web.Mvc.Fluent.GridLayoutBuilder`2.MaxRowsOrColumns(System.Int32)">
          <a class="xref" href="C1.Web.Mvc.Fluent.GridLayoutBuilder-2.MaxRowsOrColumns.html#C1_Web_Mvc_Fluent_GridLayoutBuilder_2_MaxRowsOrColumns_System_Int32_">MaxRowsOrColumns(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.GridLayout.MaxRowsOrColumns.html#C1_Web_Mvc_GridLayout_MaxRowsOrColumns">MaxRowsOrColumns</a>.
Sets the maximum number of the row count or the column count.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_GridLayoutBuilder_2_Orientation_C1_Web_Mvc_LayoutOrientation_" data-uid="C1.Web.Mvc.Fluent.GridLayoutBuilder`2.Orientation(C1.Web.Mvc.LayoutOrientation)">
          <a class="xref" href="C1.Web.Mvc.Fluent.GridLayoutBuilder-2.Orientation.html#C1_Web_Mvc_Fluent_GridLayoutBuilder_2_Orientation_C1_Web_Mvc_LayoutOrientation_">Orientation(LayoutOrientation)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.GridLayout.Orientation.html#C1_Web_Mvc_GridLayout_Orientation">Orientation</a>.
Sets the layout orientation.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
