# C1.Web.Mvc.Fluent.AccordionBuilder

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_AccordionBuilder" data-uid="C1.Web.Mvc.Fluent.AccordionBuilder" class="text-break">AccordionBuilder Class
</h1>
  <div class="markdown level0 summary"><p>Defines a builder to configurate <a class="xref" href="C1.Web.Mvc.Accordion.html">Accordion</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.Accordion.html">Accordion</a>, <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.html">AccordionBuilder</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.Accordion.html">Accordion</a>, <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.html">AccordionBuilder</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.Accordion.html">Accordion</a>, <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.html">AccordionBuilder</a>&gt;</div>
    <div class="level5"><span class="xref">AccordionBuilder</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_AccordionBuilder_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class AccordionBuilder : ControlBuilder&lt;Accordion, AccordionBuilder&gt;, IHtmlContent</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class AccordionBuilder
    Inherits ControlBuilder(Of Accordion, AccordionBuilder)
    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_AccordionBuilder__ctor_C1_Web_Mvc_Accordion_" data-uid="C1.Web.Mvc.Fluent.AccordionBuilder.#ctor(C1.Web.Mvc.Accordion)">
          <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.-ctor.html#C1_Web_Mvc_Fluent_AccordionBuilder__ctor_C1_Web_Mvc_Accordion_">AccordionBuilder(Accordion)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.html">AccordionBuilder</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_AccordionBuilder_AllowCollapseAll_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.AccordionBuilder.AllowCollapseAll(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.AllowCollapseAll.html#C1_Web_Mvc_Fluent_AccordionBuilder_AllowCollapseAll_System_Boolean_">AllowCollapseAll(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Accordion.AllowCollapseAll.html#C1_Web_Mvc_Accordion_AllowCollapseAll">AllowCollapseAll</a>.
Sets a value that determines whether users should be allowed to collapse all the items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_AccordionBuilder_AllowExpandMany_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.AccordionBuilder.AllowExpandMany(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.AllowExpandMany.html#C1_Web_Mvc_Fluent_AccordionBuilder_AllowExpandMany_System_Boolean_">AllowExpandMany(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Accordion.AllowExpandMany.html#C1_Web_Mvc_Accordion_AllowExpandMany">AllowExpandMany</a>.
Sets a value that determines whether users should be allowed to expand multiple panes at a time.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_AccordionBuilder_AutoSwitch_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.AccordionBuilder.AutoSwitch(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.AutoSwitch.html#C1_Web_Mvc_Fluent_AccordionBuilder_AutoSwitch_System_Boolean_">AutoSwitch(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Accordion.AutoSwitch.html#C1_Web_Mvc_Accordion_AutoSwitch">AutoSwitch</a>.
Sets a value that determines whether the control should switch panes automatically when the user selects a pane using the arrow keys.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_AccordionBuilder_IsAnimated_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.AccordionBuilder.IsAnimated(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.IsAnimated.html#C1_Web_Mvc_Fluent_AccordionBuilder_IsAnimated_System_Boolean_">IsAnimated(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Accordion.IsAnimated.html#C1_Web_Mvc_Accordion_IsAnimated">IsAnimated</a>.
Sets a value that determines whether collapsing or expanding panes should be animated.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_AccordionBuilder_OnClientSelectedIndexChanged_System_String_" data-uid="C1.Web.Mvc.Fluent.AccordionBuilder.OnClientSelectedIndexChanged(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.OnClientSelectedIndexChanged.html#C1_Web_Mvc_Fluent_AccordionBuilder_OnClientSelectedIndexChanged_System_String_">OnClientSelectedIndexChanged(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates the <a class="xref" href="C1.Web.Mvc.Accordion.OnClientSelectedIndexChanged.html#C1_Web_Mvc_Accordion_OnClientSelectedIndexChanged">OnClientSelectedIndexChanged</a> client event.
Occurs when the value of the selectedIndex property changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_AccordionBuilder_Panes_System_Action_C1_Web_Mvc_Fluent_ListItemFactory_C1_Web_Mvc_AccordionPane_C1_Web_Mvc_Fluent_AccordionPaneBuilder___" data-uid="C1.Web.Mvc.Fluent.AccordionBuilder.Panes(System.Action{C1.Web.Mvc.Fluent.ListItemFactory{C1.Web.Mvc.AccordionPane,C1.Web.Mvc.Fluent.AccordionPaneBuilder}})">
          <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.Panes.html#C1_Web_Mvc_Fluent_AccordionBuilder_Panes_System_Action_C1_Web_Mvc_Fluent_ListItemFactory_C1_Web_Mvc_AccordionPane_C1_Web_Mvc_Fluent_AccordionPaneBuilder___">Panes(Action&lt;ListItemFactory&lt;AccordionPane, AccordionPaneBuilder&gt;&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the Panes property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_AccordionBuilder_SelectedIndex_System_Int32_" data-uid="C1.Web.Mvc.Fluent.AccordionBuilder.SelectedIndex(System.Int32)">
          <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.SelectedIndex.html#C1_Web_Mvc_Fluent_AccordionBuilder_SelectedIndex_System_Int32_">SelectedIndex(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Accordion.SelectedIndex.html#C1_Web_Mvc_Accordion_SelectedIndex">SelectedIndex</a>.
Sets the index of the currently selected (active) pane.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_AccordionBuilder_ShowIcons_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.AccordionBuilder.ShowIcons(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.ShowIcons.html#C1_Web_Mvc_Fluent_AccordionBuilder_ShowIcons_System_Boolean_">ShowIcons(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Accordion.ShowIcons.html#C1_Web_Mvc_Accordion_ShowIcons">ShowIcons</a>.
Sets a value that determines whether shows collapsed/expanded icons in the pane headers.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_AccordionBuilder_Tabs_System_Action_C1_Web_Mvc_Fluent_ListItemFactory_C1_Web_Mvc_AccordionPane_C1_Web_Mvc_Fluent_AccordionPaneBuilder___" data-uid="C1.Web.Mvc.Fluent.AccordionBuilder.Tabs(System.Action{C1.Web.Mvc.Fluent.ListItemFactory{C1.Web.Mvc.AccordionPane,C1.Web.Mvc.Fluent.AccordionPaneBuilder}})">
          <a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.Tabs.html#C1_Web_Mvc_Fluent_AccordionBuilder_Tabs_System_Action_C1_Web_Mvc_Fluent_ListItemFactory_C1_Web_Mvc_AccordionPane_C1_Web_Mvc_Fluent_AccordionPaneBuilder___">Tabs(Action&lt;ListItemFactory&lt;AccordionPane, AccordionPaneBuilder&gt;&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the Panes property.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
