# FarPoint.Web.Chart.LegendAreaCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Chart_LegendAreaCollection" data-uid="FarPoint.Web.Chart.LegendAreaCollection" class="text-break">LegendAreaCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of legend areas.</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">LegendAreaCollection</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.generic.ilist-1">IList</a>&lt;<a class="xref" href="FarPoint.Web.Chart.LegendArea.html">LegendArea</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="FarPoint.Web.Chart.LegendArea.html">LegendArea</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="FarPoint.Web.Chart.LegendArea.html">LegendArea</a>&gt;</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.xml.serialization.ixmlserializable">IXmlSerializable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Web.Chart.html">FarPoint.Web.Chart</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Web.Chart.dll</h6>
  <h5 id="FarPoint_Web_Chart_LegendAreaCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class LegendAreaCollection : IList, ICollection, IList&lt;LegendArea&gt;, ICollection&lt;LegendArea&gt;, IEnumerable&lt;LegendArea&gt;, IEnumerable, IXmlSerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class LegendAreaCollection
    Implements IList, ICollection, IList(Of LegendArea), ICollection(Of LegendArea), IEnumerable(Of LegendArea), IEnumerable, IXmlSerializable</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="FarPoint_Web_Chart_LegendAreaCollection_Count" data-uid="FarPoint.Web.Chart.LegendAreaCollection.Count">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.Count.html#FarPoint_Web_Chart_LegendAreaCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of legend areas in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_Item_System_Int32_" data-uid="FarPoint.Web.Chart.LegendAreaCollection.Item(System.Int32)">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.Item.html#FarPoint_Web_Chart_LegendAreaCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the legend area at the specified index.</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="FarPoint_Web_Chart_LegendAreaCollection_Add_FarPoint_Web_Chart_LegendArea_" data-uid="FarPoint.Web.Chart.LegendAreaCollection.Add(FarPoint.Web.Chart.LegendArea)">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.Add.html#FarPoint_Web_Chart_LegendAreaCollection_Add_FarPoint_Web_Chart_LegendArea_">Add(LegendArea)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a legend area to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_AddRange_FarPoint_Web_Chart_LegendArea___" data-uid="FarPoint.Web.Chart.LegendAreaCollection.AddRange(FarPoint.Web.Chart.LegendArea[])">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.AddRange.html#FarPoint_Web_Chart_LegendAreaCollection_AddRange_FarPoint_Web_Chart_LegendArea___">AddRange(LegendArea[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an array of legend areas to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_Clear" data-uid="FarPoint.Web.Chart.LegendAreaCollection.Clear">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.Clear.html#FarPoint_Web_Chart_LegendAreaCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all legend areas from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_Contains_FarPoint_Web_Chart_LegendArea_" data-uid="FarPoint.Web.Chart.LegendAreaCollection.Contains(FarPoint.Web.Chart.LegendArea)">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.Contains.html#FarPoint_Web_Chart_LegendAreaCollection_Contains_FarPoint_Web_Chart_LegendArea_">Contains(LegendArea)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the collection contains a specific legend area.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_CopyTo_FarPoint_Web_Chart_LegendArea___System_Int32_" data-uid="FarPoint.Web.Chart.LegendAreaCollection.CopyTo(FarPoint.Web.Chart.LegendArea[],System.Int32)">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.CopyTo.html#FarPoint_Web_Chart_LegendAreaCollection_CopyTo_FarPoint_Web_Chart_LegendArea___System_Int32_">CopyTo(LegendArea[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the legend areas in the collection to an array,
starting at the specified array index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_GetEnumerator" data-uid="FarPoint.Web.Chart.LegendAreaCollection.GetEnumerator">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.GetEnumerator.html#FarPoint_Web_Chart_LegendAreaCollection_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an enumerator that iterates through the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_GetSchema" data-uid="FarPoint.Web.Chart.LegendAreaCollection.GetSchema">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.GetSchema.html#FarPoint_Web_Chart_LegendAreaCollection_GetSchema">GetSchema()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is reserved and should not be used.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_IndexOf_FarPoint_Web_Chart_LegendArea_" data-uid="FarPoint.Web.Chart.LegendAreaCollection.IndexOf(FarPoint.Web.Chart.LegendArea)">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.IndexOf.html#FarPoint_Web_Chart_LegendAreaCollection_IndexOf_FarPoint_Web_Chart_LegendArea_">IndexOf(LegendArea)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the index of the legend area in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_Insert_System_Int32_FarPoint_Web_Chart_LegendArea_" data-uid="FarPoint.Web.Chart.LegendAreaCollection.Insert(System.Int32,FarPoint.Web.Chart.LegendArea)">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.Insert.html#FarPoint_Web_Chart_LegendAreaCollection_Insert_System_Int32_FarPoint_Web_Chart_LegendArea_">Insert(int, LegendArea)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a legend area into the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_InsertRange_System_Int32_FarPoint_Web_Chart_LegendArea___" data-uid="FarPoint.Web.Chart.LegendAreaCollection.InsertRange(System.Int32,FarPoint.Web.Chart.LegendArea[])">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.InsertRange.html#FarPoint_Web_Chart_LegendAreaCollection_InsertRange_System_Int32_FarPoint_Web_Chart_LegendArea___">InsertRange(int, LegendArea[])</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an array of legend areas into the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_OnChanged_System_EventArgs_" data-uid="FarPoint.Web.Chart.LegendAreaCollection.OnChanged(System.EventArgs)">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.OnChanged.html#FarPoint_Web_Chart_LegendAreaCollection_OnChanged_System_EventArgs_">OnChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the Changed event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_ReadXml_System_Xml_XmlReader_" data-uid="FarPoint.Web.Chart.LegendAreaCollection.ReadXml(System.Xml.XmlReader)">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.ReadXml.html#FarPoint_Web_Chart_LegendAreaCollection_ReadXml_System_Xml_XmlReader_">ReadXml(XmlReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Generates an object from its XML representation.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_Remove_FarPoint_Web_Chart_LegendArea_" data-uid="FarPoint.Web.Chart.LegendAreaCollection.Remove(FarPoint.Web.Chart.LegendArea)">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.Remove.html#FarPoint_Web_Chart_LegendAreaCollection_Remove_FarPoint_Web_Chart_LegendArea_">Remove(LegendArea)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a legend area from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_RemoveAt_System_Int32_" data-uid="FarPoint.Web.Chart.LegendAreaCollection.RemoveAt(System.Int32)">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.RemoveAt.html#FarPoint_Web_Chart_LegendAreaCollection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Remove a legend area from the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LegendAreaCollection_WriteXml_System_Xml_XmlWriter_" data-uid="FarPoint.Web.Chart.LegendAreaCollection.WriteXml(System.Xml.XmlWriter)">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.WriteXml.html#FarPoint_Web_Chart_LegendAreaCollection_WriteXml_System_Xml_XmlWriter_">WriteXml(XmlWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts an object into its XML representation.</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="FarPoint_Web_Chart_LegendAreaCollection_Changed" data-uid="FarPoint.Web.Chart.LegendAreaCollection.Changed">
          <a class="xref" href="FarPoint.Web.Chart.LegendAreaCollection.Changed.html">Changed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the collection is changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
