# C1.Document.C1KeyedList-2

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Document_C1KeyedList_2" data-uid="C1.Document.C1KeyedList`2" class="text-break">C1KeyedList&lt;TKey, TItem&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents the pages of document.</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">C1KeyedList&lt;TKey, TItem&gt;</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;TItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;TItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;TItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Document.html">C1.Document</a></h6>
  <h6><strong>Assembly</strong>: C1.Document.dll</h6>
  <h5 id="C1_Document_C1KeyedList_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1KeyedList&lt;TKey, TItem&gt; : IList&lt;TItem&gt;, ICollection&lt;TItem&gt;, IEnumerable&lt;TItem&gt;, IEnumerable where TKey : IComparable&lt;TKey&gt; where TItem : IC1KeyedItem&lt;TKey&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1KeyedList(Of TKey As IComparable(Of TKey), TItem As IC1KeyedItem(Of TKey))
    Implements IList(Of TItem), ICollection(Of TItem), IEnumerable(Of TItem), IEnumerable</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TKey</span></td>
        <td><p>The type of key.</p>
</td>
      </tr>
      <tr>
        <td><span class="parametername">TItem</span></td>
        <td><p>The page item type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Document_C1KeyedList_2__ctor" data-uid="C1.Document.C1KeyedList`2.#ctor">
          <a class="xref" href="C1.Document.C1KeyedList-2.-ctor.html#C1_Document_C1KeyedList_2__ctor">C1KeyedList()</a>
        </td>
        <td class="markdown level1 summary"></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_Document_C1KeyedList_2_Count" data-uid="C1.Document.C1KeyedList`2.Count">
          <a class="xref" href="C1.Document.C1KeyedList-2.Count.html#C1_Document_C1KeyedList_2_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements contained in the <a class="xref" href="C1.Document.C1KeyedList-2.html">C1KeyedList&lt;TKey, TItem&gt;</a>.</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_Document_C1KeyedList_2_Add__1_" data-uid="C1.Document.C1KeyedList`2.Add(`1)">
          <a class="xref" href="C1.Document.C1KeyedList-2.Add.html#C1_Document_C1KeyedList_2_Add__1_">Add(TItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the item to document pages.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1KeyedList_2_Clear" data-uid="C1.Document.C1KeyedList`2.Clear">
          <a class="xref" href="C1.Document.C1KeyedList-2.Clear.html#C1_Document_C1KeyedList_2_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all elements from the <a class="xref" href="C1.Document.C1KeyedList-2.html">C1KeyedList&lt;TKey, TItem&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1KeyedList_2_GetByIndex_System_Int32_" data-uid="C1.Document.C1KeyedList`2.GetByIndex(System.Int32)">
          <a class="xref" href="C1.Document.C1KeyedList-2.GetByIndex.html#C1_Document_C1KeyedList_2_GetByIndex_System_Int32_">GetByIndex(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the page item by specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1KeyedList_2_IndexOf__1_" data-uid="C1.Document.C1KeyedList`2.IndexOf(`1)">
          <a class="xref" href="C1.Document.C1KeyedList-2.IndexOf.html#C1_Document_C1KeyedList_2_IndexOf__1_">IndexOf(TItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the specified page in the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1KeyedList_2_RemoveAt_System_Int32_" data-uid="C1.Document.C1KeyedList`2.RemoveAt(System.Int32)">
          <a class="xref" href="C1.Document.C1KeyedList-2.RemoveAt.html#C1_Document_C1KeyedList_2_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the element at the specified index of the <a class="xref" href="C1.Document.C1KeyedList-2.html">C1KeyedList&lt;TKey, TItem&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1KeyedList_2_TryGetValue__0__1__" data-uid="C1.Document.C1KeyedList`2.TryGetValue(`0,`1@)">
          <a class="xref" href="C1.Document.C1KeyedList-2.TryGetValue.html#C1_Document_C1KeyedList_2_TryGetValue__0__1__">TryGetValue(TKey, out TItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the page by specified key.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
