# C1.Web.Mvc.LayoutBase

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_LayoutBase" data-uid="C1.Web.Mvc.LayoutBase" class="text-break">LayoutBase Class
</h1>
  <div class="markdown level0 summary"><p>Defines the base class for the layouts.</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"><a class="xref" href="C1.Web.Mvc.Component.html">Component</a></div>
    <div class="level2"><span class="xref">Service</span></div>
    <div class="level3"><span class="xref">LayoutBase</span></div>
      <div class="level4"><a class="xref" href="C1.Web.Mvc.FlowLayout.html">FlowLayout</a></div>
      <div class="level4"><a class="xref" href="C1.Web.Mvc.GridLayout.html">GridLayout</a></div>
      <div class="level4"><a class="xref" href="C1.Web.Mvc.SplitLayout.html">SplitLayout</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.ITemplate.html">ITemplate</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.html">C1.Web.Mvc</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_LayoutBase_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class LayoutBase : Service, IHtmlContent, ITemplate</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class LayoutBase
    Inherits Service
    Implements IHtmlContent, ITemplate</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="C1_Web_Mvc_LayoutBase__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_" data-uid="C1.Web.Mvc.LayoutBase.#ctor(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper)">
          <a class="xref" href="C1.Web.Mvc.LayoutBase.-ctor.html#C1_Web_Mvc_LayoutBase__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_">LayoutBase(IHtmlHelper)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one LayoutBase instance.</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_LayoutBase_Render_System_IO_TextWriter_System_Text_Encodings_Web_HtmlEncoder_" data-uid="C1.Web.Mvc.LayoutBase.Render(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)">
          <a class="xref" href="C1.Web.Mvc.LayoutBase.Render.html#C1_Web_Mvc_LayoutBase_Render_System_IO_TextWriter_System_Text_Encodings_Web_HtmlEncoder_">Render(TextWriter, HtmlEncoder)</a>
        </td>
        <td class="markdown level1 summary"><p>Render the component result to the writer.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
