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

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_ComponentBuilder_2" data-uid="C1.Web.Mvc.Fluent.ComponentBuilder`2" class="text-break">ComponentBuilder&lt;TControl, TBuilder&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Defines a builder to configurate <a class="xref" href="C1.Web.Mvc.Component.html">Component</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"><span class="xref">ComponentBuilder&lt;TControl, TBuilder&gt;</span></div>
      <div class="level4"><a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.html">ControlBuilder&lt;TControl, TBuilder&gt;</a></div>
      <div class="level4"><a class="xref" href="C1.Web.Mvc.Fluent.ScriptsBuilder.html">ScriptsBuilder</a></div>
      <div class="level4"><a class="xref" href="C1.Web.Mvc.Fluent.ServiceBuilder-2.html">ServiceBuilder&lt;TControl, TBuilder&gt;</a></div>
      <div class="level4"><a class="xref" href="C1.Web.Mvc.Fluent.StylesBuilder.html">StylesBuilder</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>
  <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_ComponentBuilder_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class ComponentBuilder&lt;TControl, TBuilder&gt; : BaseBuilder&lt;TControl, TBuilder&gt;, IHtmlContent where TControl : Component where TBuilder : ComponentBuilder&lt;TControl, TBuilder&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class ComponentBuilder(Of TControl As Component, TBuilder As ComponentBuilder(Of TControl, TBuilder))
    Inherits BaseBuilder(Of TControl, TBuilder)
    Implements IHtmlContent</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_ComponentBuilder_2__ctor__0_" data-uid="C1.Web.Mvc.Fluent.ComponentBuilder`2.#ctor(`0)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ComponentBuilder-2.-ctor.html#C1_Web_Mvc_Fluent_ComponentBuilder_2__ctor__0_">ComponentBuilder(TControl)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Fluent.ComponentBuilder-2.html">ComponentBuilder&lt;TControl, TBuilder&gt;</a> instance to configurate <code class="paramref">component</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_ComponentBuilder_2_WriteTo_System_IO_TextWriter_System_Text_Encodings_Web_HtmlEncoder_" data-uid="C1.Web.Mvc.Fluent.ComponentBuilder`2.WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ComponentBuilder-2.WriteTo.html#C1_Web_Mvc_Fluent_ComponentBuilder_2_WriteTo_System_IO_TextWriter_System_Text_Encodings_Web_HtmlEncoder_">WriteTo(TextWriter, HtmlEncoder)</a>
        </td>
        <td class="markdown level1 summary"><p>Writer the process result of current instance to the writer.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="C1.Web.Mvc.Fluent.IHtmlStringExtension.ToTemplate.html#C1_Web_Mvc_Fluent_IHtmlStringExtension_ToTemplate_Microsoft_AspNetCore_Html_IHtmlContent_">IHtmlStringExtension.ToTemplate(IHtmlContent)</a>
  </div>

</div>
