# GrapeCity.ActiveReports.Chart.LegendItemsCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_Chart_LegendItemsCollection" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection" class="text-break">LegendItemsCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents the settings for the LegendItemsCollection class.</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.collectionbase">CollectionBase</a></div>
    <div class="level2"><span class="xref">LegendItemsCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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="GrapeCity.ActiveReports.Chart.IGraphItem.html">IGraphItem</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Chart.html">GrapeCity.ActiveReports.Chart</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Chart.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(StdCollectionTypeConverter))]
public sealed class LegendItemsCollection : CollectionBase, IList, ICollection, IEnumerable, IGraphItem, ICloneable</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="GrapeCity_ActiveReports_Chart_LegendItemsCollection__ctor_GrapeCity_ActiveReports_Chart_LegendItem___" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.#ctor(GrapeCity.ActiveReports.Chart.LegendItem[])">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.-ctor.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection__ctor_GrapeCity_ActiveReports_Chart_LegendItem___">LegendItemsCollection(LegendItem[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes new instance of the LegendItemsCollection class</p>
</td>
      </tr>
    </tbody>
  </table>
  <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="GrapeCity_ActiveReports_Chart_LegendItemsCollection_Capacity" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Capacity">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Capacity.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_Capacity">Capacity</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of elements that the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a> can contain.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_Count" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Count">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Count.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements contained in the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a> instance. This property cannot be overridden.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_Item_System_Int32_" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Item.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Get or sets custom legend item by given index</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_Item_System_String_" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Item(System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Item.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Get or sets custom legend item by given name</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="GrapeCity_ActiveReports_Chart_LegendItemsCollection_Add_GrapeCity_ActiveReports_Chart_LegendItem_" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Add(GrapeCity.ActiveReports.Chart.LegendItem)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Add.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_Add_GrapeCity_ActiveReports_Chart_LegendItem_">Add(LegendItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds new legend item to the current collection</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_AddRange_GrapeCity_ActiveReports_Chart_LegendItem___" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.AddRange(GrapeCity.ActiveReports.Chart.LegendItem[])">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.AddRange.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_AddRange_GrapeCity_ActiveReports_Chart_LegendItem___">AddRange(LegendItem[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds array of legend items to collection</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_Clone" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Clone">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Clone.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new object that is a copy of the current instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_Contains_GrapeCity_ActiveReports_Chart_LegendItem_" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Contains(GrapeCity.ActiveReports.Chart.LegendItem)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Contains.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_Contains_GrapeCity_ActiveReports_Chart_LegendItem_">Contains(LegendItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the Collection contains the given <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItem.html">LegendItem</a></p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_CopyTo_GrapeCity_ActiveReports_Chart_LegendItem___System_Int32_" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.CopyTo(GrapeCity.ActiveReports.Chart.LegendItem[],System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.CopyTo.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_CopyTo_GrapeCity_ActiveReports_Chart_LegendItem___System_Int32_">CopyTo(LegendItem[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_Equals_System_Object_" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Equals(System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Equals.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_GetHashCode" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.GetHashCode">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.GetHashCode.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_IndexOf_GrapeCity_ActiveReports_Chart_LegendItem_" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.IndexOf(GrapeCity.ActiveReports.Chart.LegendItem)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.IndexOf.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_IndexOf_GrapeCity_ActiveReports_Chart_LegendItem_">IndexOf(LegendItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the index of the first occurrence of a value in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_Insert_System_Int32_GrapeCity_ActiveReports_Chart_LegendItem_" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Insert(System.Int32,GrapeCity.ActiveReports.Chart.LegendItem)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Insert.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_Insert_System_Int32_GrapeCity_ActiveReports_Chart_LegendItem_">Insert(int, LegendItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a legend item into the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_OnClearComplete" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.OnClearComplete">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.OnClearComplete.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_OnClearComplete">OnClearComplete()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_OnInsert_System_Int32_System_Object_" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.OnInsert(System.Int32,System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.OnInsert.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_OnInsert_System_Int32_System_Object_">OnInsert(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes before inserting a new item into the collection instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_OnRemoveComplete_System_Int32_System_Object_" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.OnRemoveComplete(System.Int32,System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.OnRemoveComplete.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_OnRemoveComplete_System_Int32_System_Object_">OnRemoveComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendItemsCollection_Remove_GrapeCity_ActiveReports_Chart_LegendItem_" data-uid="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Remove(GrapeCity.ActiveReports.Chart.LegendItem)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendItemsCollection.Remove.html#GrapeCity_ActiveReports_Chart_LegendItemsCollection_Remove_GrapeCity_ActiveReports_Chart_LegendItem_">Remove(LegendItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of a specific object from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
