# C1.Web.Mvc.Fluent.MenuItemBuilder

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_MenuItemBuilder" data-uid="C1.Web.Mvc.Fluent.MenuItemBuilder" class="text-break">MenuItemBuilder Class
</h1>
  <div class="markdown level0 summary"><p>Defines a builder to configurate <a class="xref" href="C1.Web.Mvc.MenuItem.html">MenuItem</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;<a class="xref" href="C1.Web.Mvc.MenuItem.html">MenuItem</a>, <a class="xref" href="C1.Web.Mvc.Fluent.MenuItemBuilder.html">MenuItemBuilder</a>&gt;</div>
    <div class="level3"><span class="xref">MenuItemBuilder</span></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_MenuItemBuilder_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class MenuItemBuilder : BaseBuilder&lt;MenuItem, MenuItemBuilder&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class MenuItemBuilder
    Inherits BaseBuilder(Of MenuItem, MenuItemBuilder)</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_MenuItemBuilder__ctor_C1_Web_Mvc_MenuItem_" data-uid="C1.Web.Mvc.Fluent.MenuItemBuilder.#ctor(C1.Web.Mvc.MenuItem)">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuItemBuilder.-ctor.html#C1_Web_Mvc_Fluent_MenuItemBuilder__ctor_C1_Web_Mvc_MenuItem_">MenuItemBuilder(MenuItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Fluent.MenuItemBuilder.html">MenuItemBuilder</a> instance to configurate <code class="paramref">obj</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_MenuItemBuilder_Command_System_Action_C1_Web_Mvc_Fluent_MenuCommandBuilder__" data-uid="C1.Web.Mvc.Fluent.MenuItemBuilder.Command(System.Action{C1.Web.Mvc.Fluent.MenuCommandBuilder})">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuItemBuilder.Command.html#C1_Web_Mvc_Fluent_MenuItemBuilder_Command_System_Action_C1_Web_Mvc_Fluent_MenuCommandBuilder__">Command(Action&lt;MenuCommandBuilder&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the Command property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_MenuItemBuilder_Command_System_String_System_String_" data-uid="C1.Web.Mvc.Fluent.MenuItemBuilder.Command(System.String,System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuItemBuilder.Command.html#C1_Web_Mvc_Fluent_MenuItemBuilder_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_MenuItemBuilder_CommandParameter_System_Object_" data-uid="C1.Web.Mvc.Fluent.MenuItemBuilder.CommandParameter(System.Object)">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuItemBuilder.CommandParameter.html#C1_Web_Mvc_Fluent_MenuItemBuilder_CommandParameter_System_Object_">CommandParameter(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.MenuItem.CommandParameter.html#C1_Web_Mvc_MenuItem_CommandParameter">CommandParameter</a>.
Sets the associated menu command parameter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_MenuItemBuilder_Header_System_String_" data-uid="C1.Web.Mvc.Fluent.MenuItemBuilder.Header(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuItemBuilder.Header.html#C1_Web_Mvc_Fluent_MenuItemBuilder_Header_System_String_">Header(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.MenuItem.Header.html#C1_Web_Mvc_MenuItem_Header">Header</a>.
Sets the header of the menu item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_MenuItemBuilder_IsSeparator_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.MenuItemBuilder.IsSeparator(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuItemBuilder.IsSeparator.html#C1_Web_Mvc_Fluent_MenuItemBuilder_IsSeparator_System_Boolean_">IsSeparator(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.MenuItem.IsSeparator.html#C1_Web_Mvc_MenuItem_IsSeparator">IsSeparator</a>.
Sets whether the MenuItem is a separator.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
