# C1.DataCollection.C1LengthList

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_DataCollection_C1LengthList" data-uid="C1.DataCollection.C1LengthList" class="text-break">C1LengthList Class
</h1>
  <div class="markdown level0 summary"><p>Virtual list of double numbers optimized for getting the accumulation up to a specified index;</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">C1LengthList</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</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="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</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="https://learn.microsoft.com/dotnet/api/system.double">double</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="https://learn.microsoft.com/dotnet/api/system.double">double</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.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.DataCollection.html">C1.DataCollection</a></h6>
  <h6><strong>Assembly</strong>: C1.DataCollection.dll</h6>
  <h5 id="C1_DataCollection_C1LengthList_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class C1LengthList : IReadOnlyList&lt;double&gt;, IReadOnlyCollection&lt;double&gt;, IList&lt;double&gt;, ICollection&lt;double&gt;, IEnumerable&lt;double&gt;, IEnumerable, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class C1LengthList
    Implements IReadOnlyList(Of Double), IReadOnlyCollection(Of Double), IList(Of Double), ICollection(Of Double), IEnumerable(Of Double), IEnumerable, IDisposable</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="C1_DataCollection_C1LengthList__ctor_System_Int32_System_Double_System_Int32_" data-uid="C1.DataCollection.C1LengthList.#ctor(System.Int32,System.Double,System.Int32)">
          <a class="xref" href="C1.DataCollection.C1LengthList.-ctor.html#C1_DataCollection_C1LengthList__ctor_System_Int32_System_Double_System_Int32_">C1LengthList(int, double, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.DataCollection.C1LengthList.html">C1LengthList</a> 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="C1_DataCollection_C1LengthList_Count" data-uid="C1.DataCollection.C1LengthList.Count">
          <a class="xref" href="C1.DataCollection.C1LengthList.Count.html#C1_DataCollection_C1LengthList_Count">Count</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_IsReadOnly" data-uid="C1.DataCollection.C1LengthList.IsReadOnly">
          <a class="xref" href="C1.DataCollection.C1LengthList.IsReadOnly.html#C1_DataCollection_C1LengthList_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_Item_System_Int32_" data-uid="C1.DataCollection.C1LengthList.Item(System.Int32)">
          <a class="xref" href="C1.DataCollection.C1LengthList.Item.html#C1_DataCollection_C1LengthList_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_TotalLength" data-uid="C1.DataCollection.C1LengthList.TotalLength">
          <a class="xref" href="C1.DataCollection.C1LengthList.TotalLength.html#C1_DataCollection_C1LengthList_TotalLength">TotalLength</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the accumulation of all the lengths in the 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_DataCollection_C1LengthList_Add_System_Double_" data-uid="C1.DataCollection.C1LengthList.Add(System.Double)">
          <a class="xref" href="C1.DataCollection.C1LengthList.Add.html#C1_DataCollection_C1LengthList_Add_System_Double_">Add(double)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_Clear" data-uid="C1.DataCollection.C1LengthList.Clear">
          <a class="xref" href="C1.DataCollection.C1LengthList.Clear.html#C1_DataCollection_C1LengthList_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_ClearRange_System_Int32_System_Int32_" data-uid="C1.DataCollection.C1LengthList.ClearRange(System.Int32,System.Int32)">
          <a class="xref" href="C1.DataCollection.C1LengthList.ClearRange.html#C1_DataCollection_C1LengthList_ClearRange_System_Int32_System_Int32_">ClearRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets to the default length the items in the range for the specified parameters <code class="paramref">startingIndex</code> and <code class="paramref">count</code>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_Contains_System_Double_" data-uid="C1.DataCollection.C1LengthList.Contains(System.Double)">
          <a class="xref" href="C1.DataCollection.C1LengthList.Contains.html#C1_DataCollection_C1LengthList_Contains_System_Double_">Contains(double)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_CopyTo_System_Double___System_Int32_" data-uid="C1.DataCollection.C1LengthList.CopyTo(System.Double[],System.Int32)">
          <a class="xref" href="C1.DataCollection.C1LengthList.CopyTo.html#C1_DataCollection_C1LengthList_CopyTo_System_Double___System_Int32_">CopyTo(double[], int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_Dispose" data-uid="C1.DataCollection.C1LengthList.Dispose">
          <a class="xref" href="C1.DataCollection.C1LengthList.Dispose.html#C1_DataCollection_C1LengthList_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_GetEnumerator" data-uid="C1.DataCollection.C1LengthList.GetEnumerator">
          <a class="xref" href="C1.DataCollection.C1LengthList.GetEnumerator.html#C1_DataCollection_C1LengthList_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_GetOffset_System_Int32_" data-uid="C1.DataCollection.C1LengthList.GetOffset(System.Int32)">
          <a class="xref" href="C1.DataCollection.C1LengthList.GetOffset.html#C1_DataCollection_C1LengthList_GetOffset_System_Int32_">GetOffset(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the accumulated length up to the indicated index (not including).</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_GetOffset_System_Int32_System_Int32_" data-uid="C1.DataCollection.C1LengthList.GetOffset(System.Int32,System.Int32)">
          <a class="xref" href="C1.DataCollection.C1LengthList.GetOffset.html#C1_DataCollection_C1LengthList_GetOffset_System_Int32_System_Int32_">GetOffset(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the accumulated length between the specified indexes (including both).</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_IndexOf_System_Double_" data-uid="C1.DataCollection.C1LengthList.IndexOf(System.Double)">
          <a class="xref" href="C1.DataCollection.C1LengthList.IndexOf.html#C1_DataCollection_C1LengthList_IndexOf_System_Double_">IndexOf(double)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_Insert_System_Int32_System_Double_" data-uid="C1.DataCollection.C1LengthList.Insert(System.Int32,System.Double)">
          <a class="xref" href="C1.DataCollection.C1LengthList.Insert.html#C1_DataCollection_C1LengthList_Insert_System_Int32_System_Double_">Insert(int, double)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_InsertRange_System_Int32_System_Collections_Generic_IEnumerable_System_Double__" data-uid="C1.DataCollection.C1LengthList.InsertRange(System.Int32,System.Collections.Generic.IEnumerable{System.Double})">
          <a class="xref" href="C1.DataCollection.C1LengthList.InsertRange.html#C1_DataCollection_C1LengthList_InsertRange_System_Int32_System_Collections_Generic_IEnumerable_System_Double__">InsertRange(int, IEnumerable&lt;double&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts the specified <code class="paramref">newItems</code> at the <code class="paramref">startingIndex</code>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_InsertRange_System_Int32_System_Int32_" data-uid="C1.DataCollection.C1LengthList.InsertRange(System.Int32,System.Int32)">
          <a class="xref" href="C1.DataCollection.C1LengthList.InsertRange.html#C1_DataCollection_C1LengthList_InsertRange_System_Int32_System_Int32_">InsertRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts the specified <code class="paramref">count</code> of default length items at the specified <code class="paramref">startingIndex</code>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_MoveRange_System_Int32_System_Int32_System_Int32_" data-uid="C1.DataCollection.C1LengthList.MoveRange(System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.DataCollection.C1LengthList.MoveRange.html#C1_DataCollection_C1LengthList_MoveRange_System_Int32_System_Int32_System_Int32_">MoveRange(int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves the number of items specified by <code class="paramref">count</code> from <code class="paramref">oldIndex</code> to <code class="paramref">newIndex</code>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_Remove_System_Double_" data-uid="C1.DataCollection.C1LengthList.Remove(System.Double)">
          <a class="xref" href="C1.DataCollection.C1LengthList.Remove.html#C1_DataCollection_C1LengthList_Remove_System_Double_">Remove(double)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_RemoveAt_System_Int32_" data-uid="C1.DataCollection.C1LengthList.RemoveAt(System.Int32)">
          <a class="xref" href="C1.DataCollection.C1LengthList.RemoveAt.html#C1_DataCollection_C1LengthList_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_RemoveRange_System_Int32_System_Int32_" data-uid="C1.DataCollection.C1LengthList.RemoveRange(System.Int32,System.Int32)">
          <a class="xref" href="C1.DataCollection.C1LengthList.RemoveRange.html#C1_DataCollection_C1LengthList_RemoveRange_System_Int32_System_Int32_">RemoveRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_DataCollection_C1LengthList_SetItem_System_Int32_System_Double_" data-uid="C1.DataCollection.C1LengthList.SetItem(System.Int32,System.Double)">
          <a class="xref" href="C1.DataCollection.C1LengthList.SetItem.html#C1_DataCollection_C1LengthList_SetItem_System_Int32_System_Double_">SetItem(int, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets an item at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="C1.DataCollection.IDataCollectionEx.AsDataCollection.html#C1_DataCollection_IDataCollectionEx_AsDataCollection__1_System_Collections_IEnumerable_">IDataCollectionEx.AsDataCollection&lt;T&gt;(IEnumerable)</a>
  </div>
  <div>
      <a class="xref" href="C1.DataCollection.IDataCollectionEx.ToDataCollection.html#C1_DataCollection_IDataCollectionEx_ToDataCollection__1_System_Collections_IEnumerable_">IDataCollectionEx.ToDataCollection&lt;T&gt;(IEnumerable)</a>
  </div>

</div>
