# C1.Web.Mvc.Fluent.MenuBuilder

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_MenuBuilder" data-uid="C1.Web.Mvc.Fluent.MenuBuilder" class="text-break">MenuBuilder Class
</h1>
  <div class="markdown level0 summary"><p>The builder for the Menu.</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;<a class="xref" href="C1.Web.Mvc.Menu.html">Menu</a>, <a class="xref" href="C1.Web.Mvc.Fluent.MenuBuilder.html">MenuBuilder</a>&gt;</div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.Fluent.ComponentBuilder-2.html">ComponentBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.Menu.html">Menu</a>, <a class="xref" href="C1.Web.Mvc.Fluent.MenuBuilder.html">MenuBuilder</a>&gt;</div>
    <div class="level4"><a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.html">ControlBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.Menu.html">Menu</a>, <a class="xref" href="C1.Web.Mvc.Fluent.MenuBuilder.html">MenuBuilder</a>&gt;</div>
    <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.ItemsBoundControlBuilder-3.html">ItemsBoundControlBuilder</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="C1.Web.Mvc.Menu.html">Menu</a>, <a class="xref" href="C1.Web.Mvc.Fluent.MenuBuilder.html">MenuBuilder</a>&gt;</div>
    <div class="level6"><a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-3.html">DropDownBuilder</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="C1.Web.Mvc.Menu.html">Menu</a>, <a class="xref" href="C1.Web.Mvc.Fluent.MenuBuilder.html">MenuBuilder</a>&gt;</div>
    <div class="level7"><a class="xref" href="C1.Web.Mvc.Fluent.ComboBoxBaseBuilder-3.html">ComboBoxBaseBuilder</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="C1.Web.Mvc.Menu.html">Menu</a>, <a class="xref" href="C1.Web.Mvc.Fluent.MenuBuilder.html">MenuBuilder</a>&gt;</div>
    <div class="level8"><a class="xref" href="C1.Web.Mvc.Fluent.MenuBaseBuilder-3.html">MenuBaseBuilder</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="C1.Web.Mvc.Menu.html">Menu</a>, <a class="xref" href="C1.Web.Mvc.Fluent.MenuBuilder.html">MenuBuilder</a>&gt;</div>
    <div class="level9"><span class="xref">MenuBuilder</span></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_MenuBuilder_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class MenuBuilder : MenuBaseBuilder&lt;object, Menu, MenuBuilder&gt;, IHtmlContent</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class MenuBuilder
    Inherits MenuBaseBuilder(Of Object, Menu, MenuBuilder)
    Implements IHtmlContent</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_Fluent_MenuBuilder__ctor_C1_Web_Mvc_Menu_" data-uid="C1.Web.Mvc.Fluent.MenuBuilder.#ctor(C1.Web.Mvc.Menu)">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuBuilder.-ctor.html#C1_Web_Mvc_Fluent_MenuBuilder__ctor_C1_Web_Mvc_Menu_">MenuBuilder(Menu)</a>
        </td>
        <td class="markdown level1 summary"><p>Create one MenuBuilder 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_Fluent_MenuBuilder_Command_System_String_System_String_" data-uid="C1.Web.Mvc.Fluent.MenuBuilder.Command(System.String,System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuBuilder.Command.html#C1_Web_Mvc_Fluent_MenuBuilder_Command_System_String_System_String_">Command(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the Command property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_MenuBuilder_MenuItems_System_Action_C1_Web_Mvc_Fluent_MenuItemFactory__" data-uid="C1.Web.Mvc.Fluent.MenuBuilder.MenuItems(System.Action{C1.Web.Mvc.Fluent.MenuItemFactory})">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuBuilder.MenuItems.html#C1_Web_Mvc_Fluent_MenuBuilder_MenuItems_System_Action_C1_Web_Mvc_Fluent_MenuItemFactory__">MenuItems(Action&lt;MenuItemFactory&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the MenuItems.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
