# GrapeCity.ActiveReports.Chart.LegendsCollection

## Content

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



  <h1 id="GrapeCity_ActiveReports_Chart_LegendsCollection" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection" class="text-break">LegendsCollection Class
</h1>
  <div class="markdown level0 summary"><p>Legends collection 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">LegendsCollection</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_LegendsCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(StdCollectionTypeConverter))]
public sealed class LegendsCollection : 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_LegendsCollection__ctor" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.-ctor.html#GrapeCity_ActiveReports_Chart_LegendsCollection__ctor">LegendsCollection()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the LegendsCollection 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_LegendsCollection_Item_System_Int32_" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.Item.html#GrapeCity_ActiveReports_Chart_LegendsCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets collection item by given index</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_Item_System_String_" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.Item(System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.Item.html#GrapeCity_ActiveReports_Chart_LegendsCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets collection 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_LegendsCollection_Add_GrapeCity_ActiveReports_Chart_Legend_" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.Add(GrapeCity.ActiveReports.Chart.Legend)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.Add.html#GrapeCity_ActiveReports_Chart_LegendsCollection_Add_GrapeCity_ActiveReports_Chart_Legend_">Add(Legend)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds layer object to the current collection</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_AddRange_GrapeCity_ActiveReports_Chart_Legend___" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.AddRange(GrapeCity.ActiveReports.Chart.Legend[])">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.AddRange.html#GrapeCity_ActiveReports_Chart_LegendsCollection_AddRange_GrapeCity_ActiveReports_Chart_Legend___">AddRange(Legend[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a set of layers to the current collection</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_Clone" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.Clone">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.Clone.html#GrapeCity_ActiveReports_Chart_LegendsCollection_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a clone of the current collection</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_Contains_GrapeCity_ActiveReports_Chart_Legend_" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.Contains(GrapeCity.ActiveReports.Chart.Legend)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.Contains.html#GrapeCity_ActiveReports_Chart_LegendsCollection_Contains_GrapeCity_ActiveReports_Chart_Legend_">Contains(Legend)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the Collection contains the given <a class="xref" href="GrapeCity.ActiveReports.Chart.Legend.html">Legend</a></p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_CopyTo_GrapeCity_ActiveReports_Chart_Legend___System_Int32_" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.CopyTo(GrapeCity.ActiveReports.Chart.Legend[],System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.CopyTo.html#GrapeCity_ActiveReports_Chart_LegendsCollection_CopyTo_GrapeCity_ActiveReports_Chart_Legend___System_Int32_">CopyTo(Legend[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>TBW</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_Equals_System_Object_" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.Equals(System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.Equals.html#GrapeCity_ActiveReports_Chart_LegendsCollection_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Compare the LegendsCollection object to another System.Object and check if the two are equal</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_GetHashCode" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.GetHashCode">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.GetHashCode.html#GrapeCity_ActiveReports_Chart_LegendsCollection_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>It functions as a hash function for a particular type. It is suitable for use in data structures such as hash algorithm and hash table.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_IndexOf_GrapeCity_ActiveReports_Chart_Legend_" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.IndexOf(GrapeCity.ActiveReports.Chart.Legend)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.IndexOf.html#GrapeCity_ActiveReports_Chart_LegendsCollection_IndexOf_GrapeCity_ActiveReports_Chart_Legend_">IndexOf(Legend)</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_LegendsCollection_Insert_System_Int32_GrapeCity_ActiveReports_Chart_Legend_" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.Insert(System.Int32,GrapeCity.ActiveReports.Chart.Legend)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.Insert.html#GrapeCity_ActiveReports_Chart_LegendsCollection_Insert_System_Int32_GrapeCity_ActiveReports_Chart_Legend_">Insert(int, Legend)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an element into the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_OnClear" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.OnClear">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.OnClear.html#GrapeCity_ActiveReports_Chart_LegendsCollection_OnClear">OnClear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all legend objects from the collection</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_OnClearComplete" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.OnClearComplete">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.OnClearComplete.html#GrapeCity_ActiveReports_Chart_LegendsCollection_OnClearComplete">OnClearComplete()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_OnInsertComplete_System_Int32_System_Object_" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.OnInsertComplete(System.Int32,System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.OnInsertComplete.html#GrapeCity_ActiveReports_Chart_LegendsCollection_OnInsertComplete_System_Int32_System_Object_">OnInsertComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_OnRemoveComplete_System_Int32_System_Object_" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.OnRemoveComplete(System.Int32,System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.OnRemoveComplete.html#GrapeCity_ActiveReports_Chart_LegendsCollection_OnRemoveComplete_System_Int32_System_Object_">OnRemoveComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_LegendsCollection_Remove_GrapeCity_ActiveReports_Chart_Legend_" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.Remove(GrapeCity.ActiveReports.Chart.Legend)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.Remove.html#GrapeCity_ActiveReports_Chart_LegendsCollection_Remove_GrapeCity_ActiveReports_Chart_Legend_">Remove(Legend)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of a specific object from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</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_LegendsCollection_Change" data-uid="GrapeCity.ActiveReports.Chart.LegendsCollection.Change">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.LegendsCollection.Change.html">Change</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the collection's content is changed</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
