# C1.Web.Mvc.Fluent.MenuItemFactory

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_MenuItemFactory" data-uid="C1.Web.Mvc.Fluent.MenuItemFactory" class="text-break">MenuItemFactory Class
</h1>
  <div class="markdown level0 summary"><p>A builder factory sub class for MenuItem.</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="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="C1.Web.Mvc.MenuItem.html">MenuItem</a>&gt;, <a class="xref" href="C1.Web.Mvc.Fluent.ListItemFactory-2.html">ListItemFactory</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;&gt;</div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.Fluent.ListItemFactory-2.html">ListItemFactory</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="level4"><span class="xref">MenuItemFactory</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_MenuItemFactory_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class MenuItemFactory : ListItemFactory&lt;MenuItem, MenuItemBuilder&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class MenuItemFactory
    Inherits ListItemFactory(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_MenuItemFactory__ctor_System_Collections_Generic_IList_C1_Web_Mvc_MenuItem__" data-uid="C1.Web.Mvc.Fluent.MenuItemFactory.#ctor(System.Collections.Generic.IList{C1.Web.Mvc.MenuItem})">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuItemFactory.-ctor.html#C1_Web_Mvc_Fluent_MenuItemFactory__ctor_System_Collections_Generic_IList_C1_Web_Mvc_MenuItem__">MenuItemFactory(IList&lt;MenuItem&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Create a MenuItemFactory 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_MenuItemFactory_Add_System_String_System_Object_" data-uid="C1.Web.Mvc.Fluent.MenuItemFactory.Add(System.String,System.Object)">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuItemFactory.Add.html#C1_Web_Mvc_Fluent_MenuItemFactory_Add_System_String_System_Object_">Add(string, object)</a>
        </td>
        <td class="markdown level1 summary"><p>An override factory method for adding MenuItem.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_MenuItemFactory_AddSeparator" data-uid="C1.Web.Mvc.Fluent.MenuItemFactory.AddSeparator">
          <a class="xref" href="C1.Web.Mvc.Fluent.MenuItemFactory.AddSeparator.html#C1_Web_Mvc_Fluent_MenuItemFactory_AddSeparator">AddSeparator()</a>
        </td>
        <td class="markdown level1 summary"><p>Add a MenuItem that is a separator.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
