# C1.Report.GroupCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_GroupCollection" data-uid="C1.Report.GroupCollection" class="text-break">GroupCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.Report.Group.html">Group</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"><a class="xref" href="C1.Report.ReportObjectCollection-1.html">ReportObjectCollection</a>&lt;<a class="xref" href="C1.Report.Group.html">Group</a>&gt;</div>
    <div class="level2"><a class="xref" href="C1.Report.ReportObjectList-1.html">ReportObjectList</a>&lt;<a class="xref" href="C1.Report.Group.html">Group</a>&gt;</div>
    <div class="level3"><span class="xref">GroupCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="C1.Report.Group.html">Group</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="C1.Report.Group.html">Group</a>&gt;</div>
    <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.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Report.html">C1.Report</a></h6>
  <h6><strong>Assembly</strong>: C1.Report.dll</h6>
  <h5 id="C1_Report_GroupCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class GroupCollection : ReportObjectList&lt;Group&gt;, ICollection&lt;Group&gt;, IEnumerable&lt;Group&gt;, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class GroupCollection
    Inherits ReportObjectList(Of Group)
    Implements ICollection(Of Group), IEnumerable(Of Group), IList, ICollection, 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_Report_GroupCollection_Report" data-uid="C1.Report.GroupCollection.Report">
          <a class="xref" href="C1.Report.GroupCollection.Report.html#C1_Report_GroupCollection_Report">Report</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a> object owning this 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_Report_GroupCollection_Add_System_String_System_String_C1_Report_SortEnum_" data-uid="C1.Report.GroupCollection.Add(System.String,System.String,C1.Report.SortEnum)">
          <a class="xref" href="C1.Report.GroupCollection.Add.html#C1_Report_GroupCollection_Add_System_String_System_String_C1_Report_SortEnum_">Add(string, string, SortEnum)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="C1.Report.Group.html">Group</a> to the collection, along with header and footer sections for the new group.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_GroupCollection_Clear" data-uid="C1.Report.GroupCollection.Clear">
          <a class="xref" href="C1.Report.GroupCollection.Clear.html#C1_Report_GroupCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_GroupCollection_RemoveAt_System_Int32_" data-uid="C1.Report.GroupCollection.RemoveAt(System.Int32)">
          <a class="xref" href="C1.Report.GroupCollection.RemoveAt.html#C1_Report_GroupCollection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes an item from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
