# C1.C1Excel.XLNamedRangeCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Excel_XLNamedRangeCollection" data-uid="C1.C1Excel.XLNamedRangeCollection" class="text-break">XLNamedRangeCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> objects.</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">XLNamedRangeCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.C1Excel.html">C1.C1Excel</a></h6>
  <h6><strong>Assembly</strong>: C1.C1Excel.4.8.dll</h6>
  <h5 id="C1_C1Excel_XLNamedRangeCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class XLNamedRangeCollection : IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class XLNamedRangeCollection
    Implements IEnumerable</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="C1_C1Excel_XLNamedRangeCollection_Book" data-uid="C1.C1Excel.XLNamedRangeCollection.Book">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Book.html#C1_C1Excel_XLNamedRangeCollection_Book">Book</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the parent <a class="xref" href="C1.C1Excel.C1XLBook.html">C1XLBook</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Count" data-uid="C1.C1Excel.XLNamedRangeCollection.Count">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Count.html#C1_C1Excel_XLNamedRangeCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> objects in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Item_System_Int32_" data-uid="C1.C1Excel.XLNamedRangeCollection.Item(System.Int32)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Item.html#C1_C1Excel_XLNamedRangeCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object at the specified index.
Returns null if an invalid index is specified.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Item_System_String_" data-uid="C1.C1Excel.XLNamedRangeCollection.Item(System.String)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Item.html#C1_C1Excel_XLNamedRangeCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object with the specified name.
Returns null if an object with the specified name could not be found in the collection.</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_C1Excel_XLNamedRangeCollection_Add_C1_C1Excel_XLNamedRange_" data-uid="C1.C1Excel.XLNamedRangeCollection.Add(C1.C1Excel.XLNamedRange)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Add.html#C1_C1Excel_XLNamedRangeCollection_Add_C1_C1Excel_XLNamedRange_">Add(XLNamedRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Appends an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Add_System_String_C1_C1Excel_XLCellRange_" data-uid="C1.C1Excel.XLNamedRangeCollection.Add(System.String,C1.C1Excel.XLCellRange)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Add.html#C1_C1Excel_XLNamedRangeCollection_Add_System_String_C1_C1Excel_XLCellRange_">Add(string, XLCellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object and appends it to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Add_System_String_C1_C1Excel_XLCellRange___" data-uid="C1.C1Excel.XLNamedRangeCollection.Add(System.String,C1.C1Excel.XLCellRange[])">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Add.html#C1_C1Excel_XLNamedRangeCollection_Add_System_String_C1_C1Excel_XLCellRange___">Add(string, XLCellRange[])</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object and appends it to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Add_System_String_C1_C1Excel_XLSheet_System_Int32_System_Int32_" data-uid="C1.C1Excel.XLNamedRangeCollection.Add(System.String,C1.C1Excel.XLSheet,System.Int32,System.Int32)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Add.html#C1_C1Excel_XLNamedRangeCollection_Add_System_String_C1_C1Excel_XLSheet_System_Int32_System_Int32_">Add(string, XLSheet, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object and appends it to the collection.
This overload creates a range containing a single cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Add_System_String_C1_C1Excel_XLSheet_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.C1Excel.XLNamedRangeCollection.Add(System.String,C1.C1Excel.XLSheet,System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Add.html#C1_C1Excel_XLNamedRangeCollection_Add_System_String_C1_C1Excel_XLSheet_System_Int32_System_Int32_System_Int32_System_Int32_">Add(string, XLSheet, int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object and appends it to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Add_System_String_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.C1Excel.XLNamedRangeCollection.Add(System.String,System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Add.html#C1_C1Excel_XLNamedRangeCollection_Add_System_String_System_Int32_System_Int32_System_Int32_System_Int32_">Add(string, int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object and appends it to the collection.
This overload allows you to create a 3-D reference to the same range of cells on multiple worksheets.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Clear" data-uid="C1.C1Excel.XLNamedRangeCollection.Clear">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Clear.html#C1_C1Excel_XLNamedRangeCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> objects from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Contains_C1_C1Excel_XLNamedRange_" data-uid="C1.C1Excel.XLNamedRangeCollection.Contains(C1.C1Excel.XLNamedRange)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Contains.html#C1_C1Excel_XLNamedRangeCollection_Contains_C1_C1Excel_XLNamedRange_">Contains(XLNamedRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the collection contains a specific <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Contains_System_String_" data-uid="C1.C1Excel.XLNamedRangeCollection.Contains(System.String)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Contains.html#C1_C1Excel_XLNamedRangeCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the collection contains an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object with the specified name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_IndexOf_C1_C1Excel_XLNamedRange_" data-uid="C1.C1Excel.XLNamedRangeCollection.IndexOf(C1.C1Excel.XLNamedRange)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.IndexOf.html#C1_C1Excel_XLNamedRangeCollection_IndexOf_C1_C1Excel_XLNamedRange_">IndexOf(XLNamedRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the position of an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_IndexOf_System_String_" data-uid="C1.C1Excel.XLNamedRangeCollection.IndexOf(System.String)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.IndexOf.html#C1_C1Excel_XLNamedRangeCollection_IndexOf_System_String_">IndexOf(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the position of an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object with the specified name in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Insert_System_Int32_C1_C1Excel_XLNamedRange_" data-uid="C1.C1Excel.XLNamedRangeCollection.Insert(System.Int32,C1.C1Excel.XLNamedRange)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Insert.html#C1_C1Excel_XLNamedRangeCollection_Insert_System_Int32_C1_C1Excel_XLNamedRange_">Insert(int, XLNamedRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object at a specific position in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Remove_C1_C1Excel_XLNamedRange_" data-uid="C1.C1Excel.XLNamedRangeCollection.Remove(C1.C1Excel.XLNamedRange)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Remove.html#C1_C1Excel_XLNamedRangeCollection_Remove_C1_C1Excel_XLNamedRange_">Remove(XLNamedRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_Remove_System_String_" data-uid="C1.C1Excel.XLNamedRangeCollection.Remove(System.String)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.Remove.html#C1_C1Excel_XLNamedRangeCollection_Remove_System_String_">Remove(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object with the specified name from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLNamedRangeCollection_RemoveAt_System_Int32_" data-uid="C1.C1Excel.XLNamedRangeCollection.RemoveAt(System.Int32)">
          <a class="xref" href="C1.C1Excel.XLNamedRangeCollection.RemoveAt.html#C1_C1Excel_XLNamedRangeCollection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes an <a class="xref" href="C1.C1Excel.XLNamedRange.html">XLNamedRange</a> object at a specific position from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
