# C1.PivotEngine.PivotFieldList

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_PivotEngine_PivotFieldList" data-uid="C1.PivotEngine.PivotFieldList" class="text-break">PivotFieldList Class
</h1>
  <div class="markdown level0 summary"><p>Represents a list of <a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a> objects.</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection</a>&lt;<a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a>&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.bindinglist-1">BindingList</a>&lt;<a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a>&gt;</div>
    <div class="level3"><span class="xref">PivotFieldList</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ibindinglist">IBindingList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icanceladdnew">ICancelAddNew</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.iraiseitemchangedevents">IRaiseItemChangedEvents</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.PivotEngine.html">C1.PivotEngine</a></h6>
  <h6><strong>Assembly</strong>: C1.PivotEngine.dll</h6>
  <h5 id="C1_PivotEngine_PivotFieldList_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PivotFieldList : BindingList&lt;PivotField&gt;, IList&lt;PivotField&gt;, ICollection&lt;PivotField&gt;, IReadOnlyList&lt;PivotField&gt;, IReadOnlyCollection&lt;PivotField&gt;, IEnumerable&lt;PivotField&gt;, IBindingList, IList, ICollection, IEnumerable, ICancelAddNew, IRaiseItemChangedEvents</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PivotFieldList
    Inherits BindingList(Of PivotField)
    Implements IList(Of PivotField), ICollection(Of PivotField), IReadOnlyList(Of PivotField), IReadOnlyCollection(Of PivotField), IEnumerable(Of PivotField), IBindingList, IList, ICollection, IEnumerable, ICancelAddNew, IRaiseItemChangedEvents</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_PivotEngine_PivotFieldList_Item_System_String_" data-uid="C1.PivotEngine.PivotFieldList.Item(System.String)">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.Item.html#C1_PivotEngine_PivotFieldList_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a> by name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_PivotEngine_PivotFieldList_MaxItems" data-uid="C1.PivotEngine.PivotFieldList.MaxItems">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.MaxItems.html#C1_PivotEngine_PivotFieldList_MaxItems">MaxItems</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum number of fields allowed in this list.</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_PivotEngine_PivotFieldList_Add_System_String___" data-uid="C1.PivotEngine.PivotFieldList.Add(System.String[])">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.Add.html#C1_PivotEngine_PivotFieldList_Add_System_String___">Add(params string[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an existing <a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a> to the list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_PivotEngine_PivotFieldList_AddCalculatedField_System_String_System_String_" data-uid="C1.PivotEngine.PivotFieldList.AddCalculatedField(System.String,System.String)">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.AddCalculatedField.html#C1_PivotEngine_PivotFieldList_AddCalculatedField_System_String_System_String_">AddCalculatedField(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new calculated field to the list</p>
</td>
      </tr>
      <tr>
        <td id="C1_PivotEngine_PivotFieldList_ClearItems" data-uid="C1.PivotEngine.PivotFieldList.ClearItems">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.ClearItems.html#C1_PivotEngine_PivotFieldList_ClearItems">ClearItems()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all items from the list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_PivotEngine_PivotFieldList_IndexOf_System_String_" data-uid="C1.PivotEngine.PivotFieldList.IndexOf(System.String)">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.IndexOf.html#C1_PivotEngine_PivotFieldList_IndexOf_System_String_">IndexOf(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the position of a given <a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a> in the list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_PivotEngine_PivotFieldList_Insert_System_Int32_System_String_" data-uid="C1.PivotEngine.PivotFieldList.Insert(System.Int32,System.String)">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.Insert.html#C1_PivotEngine_PivotFieldList_Insert_System_Int32_System_String_">Insert(int, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a> at a specified position in the list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_PivotEngine_PivotFieldList_InsertItem_System_Int32_C1_PivotEngine_PivotField_" data-uid="C1.PivotEngine.PivotFieldList.InsertItem(System.Int32,C1.PivotEngine.PivotField)">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.InsertItem.html#C1_PivotEngine_PivotFieldList_InsertItem_System_Int32_C1_PivotEngine_PivotField_">InsertItem(int, PivotField)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a> at a specified position in the list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_PivotEngine_PivotFieldList_Remove_System_String_" data-uid="C1.PivotEngine.PivotFieldList.Remove(System.String)">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.Remove.html#C1_PivotEngine_PivotFieldList_Remove_System_String_">Remove(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of the <a class="xref" href="C1.PivotEngine.PivotField.html">PivotField</a> with a key that matches
the one passed as parameter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_PivotEngine_PivotFieldList_RemoveItem_System_Int32_" data-uid="C1.PivotEngine.PivotFieldList.RemoveItem(System.Int32)">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.RemoveItem.html#C1_PivotEngine_PivotFieldList_RemoveItem_System_Int32_">RemoveItem(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes an item from the list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_PivotEngine_PivotFieldList_SetItem_System_Int32_C1_PivotEngine_PivotField_" data-uid="C1.PivotEngine.PivotFieldList.SetItem(System.Int32,C1.PivotEngine.PivotField)">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.SetItem.html#C1_PivotEngine_PivotFieldList_SetItem_System_Int32_C1_PivotEngine_PivotField_">SetItem(int, PivotField)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces the item at a specified position.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_PivotEngine_PivotFieldList_op_Implicit_C1_PivotEngine_PivotFieldList__C1_FlexPivot_C1FlexPivotFieldList" data-uid="C1.PivotEngine.PivotFieldList.op_Implicit(C1.PivotEngine.PivotFieldList)~C1.FlexPivot.C1FlexPivotFieldList">
          <a class="xref" href="C1.PivotEngine.PivotFieldList.op_Implicit.html#C1_PivotEngine_PivotFieldList_op_Implicit_C1_PivotEngine_PivotFieldList__C1_FlexPivot_C1FlexPivotFieldList">implicit operator C1FlexPivotFieldList(PivotFieldList)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
