# FarPoint.Web.Chart.LightCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Chart_LightCollection" data-uid="FarPoint.Web.Chart.LightCollection" class="text-break">LightCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of lights.</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">LightCollection</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.Light.html">Light</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.Light.html">Light</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.Light.html">Light</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_LightCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class LightCollection : IList, ICollection, IList&lt;Light&gt;, ICollection&lt;Light&gt;, IEnumerable&lt;Light&gt;, IEnumerable, IXmlSerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class LightCollection
    Implements IList, ICollection, IList(Of Light), ICollection(Of Light), IEnumerable(Of Light), 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_LightCollection_Count" data-uid="FarPoint.Web.Chart.LightCollection.Count">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.Count.html#FarPoint_Web_Chart_LightCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of lights in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LightCollection_Item_System_Int32_" data-uid="FarPoint.Web.Chart.LightCollection.Item(System.Int32)">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.Item.html#FarPoint_Web_Chart_LightCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the light 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_LightCollection_Add_FarPoint_Web_Chart_Light_" data-uid="FarPoint.Web.Chart.LightCollection.Add(FarPoint.Web.Chart.Light)">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.Add.html#FarPoint_Web_Chart_LightCollection_Add_FarPoint_Web_Chart_Light_">Add(Light)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a light to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LightCollection_AddRange_FarPoint_Web_Chart_Light___" data-uid="FarPoint.Web.Chart.LightCollection.AddRange(FarPoint.Web.Chart.Light[])">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.AddRange.html#FarPoint_Web_Chart_LightCollection_AddRange_FarPoint_Web_Chart_Light___">AddRange(Light[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an array of lights to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LightCollection_Clear" data-uid="FarPoint.Web.Chart.LightCollection.Clear">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.Clear.html#FarPoint_Web_Chart_LightCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all lights from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LightCollection_Contains_FarPoint_Web_Chart_Light_" data-uid="FarPoint.Web.Chart.LightCollection.Contains(FarPoint.Web.Chart.Light)">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.Contains.html#FarPoint_Web_Chart_LightCollection_Contains_FarPoint_Web_Chart_Light_">Contains(Light)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the collection contains a specific light.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LightCollection_CopyTo_FarPoint_Web_Chart_Light___System_Int32_" data-uid="FarPoint.Web.Chart.LightCollection.CopyTo(FarPoint.Web.Chart.Light[],System.Int32)">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.CopyTo.html#FarPoint_Web_Chart_LightCollection_CopyTo_FarPoint_Web_Chart_Light___System_Int32_">CopyTo(Light[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the lights in the collection to an array,
starting at the specified array index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LightCollection_GetEnumerator" data-uid="FarPoint.Web.Chart.LightCollection.GetEnumerator">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.GetEnumerator.html#FarPoint_Web_Chart_LightCollection_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_LightCollection_GetSchema" data-uid="FarPoint.Web.Chart.LightCollection.GetSchema">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.GetSchema.html#FarPoint_Web_Chart_LightCollection_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_LightCollection_IndexOf_FarPoint_Web_Chart_Light_" data-uid="FarPoint.Web.Chart.LightCollection.IndexOf(FarPoint.Web.Chart.Light)">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.IndexOf.html#FarPoint_Web_Chart_LightCollection_IndexOf_FarPoint_Web_Chart_Light_">IndexOf(Light)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the index of the light in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LightCollection_Insert_System_Int32_FarPoint_Web_Chart_Light_" data-uid="FarPoint.Web.Chart.LightCollection.Insert(System.Int32,FarPoint.Web.Chart.Light)">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.Insert.html#FarPoint_Web_Chart_LightCollection_Insert_System_Int32_FarPoint_Web_Chart_Light_">Insert(int, Light)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a light into the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LightCollection_InsertRange_System_Int32_FarPoint_Web_Chart_Light___" data-uid="FarPoint.Web.Chart.LightCollection.InsertRange(System.Int32,FarPoint.Web.Chart.Light[])">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.InsertRange.html#FarPoint_Web_Chart_LightCollection_InsertRange_System_Int32_FarPoint_Web_Chart_Light___">InsertRange(int, Light[])</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an array of lights into the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LightCollection_OnChanged_System_EventArgs_" data-uid="FarPoint.Web.Chart.LightCollection.OnChanged(System.EventArgs)">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.OnChanged.html#FarPoint_Web_Chart_LightCollection_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_LightCollection_ReadXml_System_Xml_XmlReader_" data-uid="FarPoint.Web.Chart.LightCollection.ReadXml(System.Xml.XmlReader)">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.ReadXml.html#FarPoint_Web_Chart_LightCollection_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_LightCollection_Remove_FarPoint_Web_Chart_Light_" data-uid="FarPoint.Web.Chart.LightCollection.Remove(FarPoint.Web.Chart.Light)">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.Remove.html#FarPoint_Web_Chart_LightCollection_Remove_FarPoint_Web_Chart_Light_">Remove(Light)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specified light from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LightCollection_RemoveAt_System_Int32_" data-uid="FarPoint.Web.Chart.LightCollection.RemoveAt(System.Int32)">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.RemoveAt.html#FarPoint_Web_Chart_LightCollection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the light at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_LightCollection_WriteXml_System_Xml_XmlWriter_" data-uid="FarPoint.Web.Chart.LightCollection.WriteXml(System.Xml.XmlWriter)">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.WriteXml.html#FarPoint_Web_Chart_LightCollection_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_LightCollection_Changed" data-uid="FarPoint.Web.Chart.LightCollection.Changed">
          <a class="xref" href="FarPoint.Web.Chart.LightCollection.Changed.html">Changed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the collection is changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
