# GrapeCity.ActiveReports.SectionCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_SectionCollection" data-uid="GrapeCity.ActiveReports.SectionCollection" class="text-break">SectionCollection Class
</h1>
  <div class="markdown level0 summary"><p>Summary description for SectionCollection.</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="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a></div>
    <div class="level2"><span class="xref">SectionCollection</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.idisposable">IDisposable</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="GrapeCity.ActiveReports.html">GrapeCity.ActiveReports</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.dll</h6>
  <h5 id="GrapeCity_ActiveReports_SectionCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SectionCollection : CollectionBase, IList, ICollection, IDisposable, 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="GrapeCity_ActiveReports_SectionCollection_Item_System_Int32_" data-uid="GrapeCity.ActiveReports.SectionCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Item.html#GrapeCity_ActiveReports_SectionCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the Section object at the specified indexed location in the SectionCollection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_Item_System_String_" data-uid="GrapeCity.ActiveReports.SectionCollection.Item(System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Item.html#GrapeCity_ActiveReports_SectionCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the Section object with the specified name in the SectionCollection.</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="GrapeCity_ActiveReports_SectionCollection_Add_GrapeCity_ActiveReports_Document_Section_SectionType_System_String_" data-uid="GrapeCity.ActiveReports.SectionCollection.Add(GrapeCity.ActiveReports.Document.Section.SectionType,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Add.html#GrapeCity_ActiveReports_SectionCollection_Add_GrapeCity_ActiveReports_Document_Section_SectionType_System_String_">Add(SectionType, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the specified SectionType to the SectionCollection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_Add_GrapeCity_ActiveReports_SectionReportModel_Section_" data-uid="GrapeCity.ActiveReports.SectionCollection.Add(GrapeCity.ActiveReports.SectionReportModel.Section)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Add.html#GrapeCity_ActiveReports_SectionCollection_Add_GrapeCity_ActiveReports_SectionReportModel_Section_">Add(Section)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the specified section to the SectionCollection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_Clear" data-uid="GrapeCity.ActiveReports.SectionCollection.Clear">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Clear.html#GrapeCity_ActiveReports_SectionCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Remove all sections from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_Contains_GrapeCity_ActiveReports_SectionReportModel_Section_" data-uid="GrapeCity.ActiveReports.SectionCollection.Contains(GrapeCity.ActiveReports.SectionReportModel.Section)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Contains.html#GrapeCity_ActiveReports_SectionCollection_Contains_GrapeCity_ActiveReports_SectionReportModel_Section_">Contains(Section)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified section object exists in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_CopyTo_GrapeCity_ActiveReports_SectionReportModel_Section___System_Int32_" data-uid="GrapeCity.ActiveReports.SectionCollection.CopyTo(GrapeCity.ActiveReports.SectionReportModel.Section[],System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.CopyTo.html#GrapeCity_ActiveReports_SectionCollection_CopyTo_GrapeCity_ActiveReports_SectionReportModel_Section___System_Int32_">CopyTo(Section[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the Sections collection from the specified report to a Sections collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_Dispose" data-uid="GrapeCity.ActiveReports.SectionCollection.Dispose">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Dispose.html#GrapeCity_ActiveReports_SectionCollection_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_GetEnumerator" data-uid="GrapeCity.ActiveReports.SectionCollection.GetEnumerator">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.GetEnumerator.html#GrapeCity_ActiveReports_SectionCollection_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an enumerator that iterates through the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_IndexOf_GrapeCity_ActiveReports_SectionReportModel_Section_" data-uid="GrapeCity.ActiveReports.SectionCollection.IndexOf(GrapeCity.ActiveReports.SectionReportModel.Section)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.IndexOf.html#GrapeCity_ActiveReports_SectionCollection_IndexOf_GrapeCity_ActiveReports_SectionReportModel_Section_">IndexOf(Section)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the specific index of the specified section in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_Insert_System_Int32_GrapeCity_ActiveReports_Document_Section_SectionType_System_String_" data-uid="GrapeCity.ActiveReports.SectionCollection.Insert(System.Int32,GrapeCity.ActiveReports.Document.Section.SectionType,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Insert.html#GrapeCity_ActiveReports_SectionCollection_Insert_System_Int32_GrapeCity_ActiveReports_Document_Section_SectionType_System_String_">Insert(int, SectionType, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new Section of the specified type and name and inserts it into the  SectionCollection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_Insert_System_Int32_GrapeCity_ActiveReports_SectionReportModel_Section_" data-uid="GrapeCity.ActiveReports.SectionCollection.Insert(System.Int32,GrapeCity.ActiveReports.SectionReportModel.Section)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Insert.html#GrapeCity_ActiveReports_SectionCollection_Insert_System_Int32_GrapeCity_ActiveReports_SectionReportModel_Section_">Insert(int, Section)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a section at the specified index in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_InsertGroupHF" data-uid="GrapeCity.ActiveReports.SectionCollection.InsertGroupHF">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.InsertGroupHF.html#GrapeCity_ActiveReports_SectionCollection_InsertGroupHF">InsertGroupHF()</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a group header and a matching group footer into the SectionCollection with the default names GroupHeader1,GroupFooter1; where 1 is an order number.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_InsertGroupHF_System_String_System_String_" data-uid="GrapeCity.ActiveReports.SectionCollection.InsertGroupHF(System.String,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.InsertGroupHF.html#GrapeCity_ActiveReports_SectionCollection_InsertGroupHF_System_String_System_String_">InsertGroupHF(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a group header and a matching group footer into the SectionCollection with the names, specified in the corresponding grHeaderName and grFooterName parameters.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_InsertPageHF" data-uid="GrapeCity.ActiveReports.SectionCollection.InsertPageHF">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.InsertPageHF.html#GrapeCity_ActiveReports_SectionCollection_InsertPageHF">InsertPageHF()</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a page header and a page matching footer into the SectionCollection with the default names PageHeader1, PageFooter1; where 1 is an order number.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_InsertReportHF" data-uid="GrapeCity.ActiveReports.SectionCollection.InsertReportHF">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.InsertReportHF.html#GrapeCity_ActiveReports_SectionCollection_InsertReportHF">InsertReportHF()</a>
        </td>
        <td class="markdown level1 summary"><p>InsertReportHF support design time and runtime inserting</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_OnInsertComplete_System_Int32_System_Object_" data-uid="GrapeCity.ActiveReports.SectionCollection.OnInsertComplete(System.Int32,System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.OnInsertComplete.html#GrapeCity_ActiveReports_SectionCollection_OnInsertComplete_System_Int32_System_Object_">OnInsertComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes after inserting a new element into the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_OnRemove_System_Int32_System_Object_" data-uid="GrapeCity.ActiveReports.SectionCollection.OnRemove(System.Int32,System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.OnRemove.html#GrapeCity_ActiveReports_SectionCollection_OnRemove_System_Int32_System_Object_">OnRemove(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes when removing an element from the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_OnRemoveComplete_System_Int32_System_Object_" data-uid="GrapeCity.ActiveReports.SectionCollection.OnRemoveComplete(System.Int32,System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.OnRemoveComplete.html#GrapeCity_ActiveReports_SectionCollection_OnRemoveComplete_System_Int32_System_Object_">OnRemoveComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes after removing an element from the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_Remove_GrapeCity_ActiveReports_SectionReportModel_Section_" data-uid="GrapeCity.ActiveReports.SectionCollection.Remove(GrapeCity.ActiveReports.SectionReportModel.Section)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Remove.html#GrapeCity_ActiveReports_SectionCollection_Remove_GrapeCity_ActiveReports_SectionReportModel_Section_">Remove(Section)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specified Section from the SectionCollection if it exists.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_SectionCollection_Remove_System_Int32_" data-uid="GrapeCity.ActiveReports.SectionCollection.Remove(System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Remove.html#GrapeCity_ActiveReports_SectionCollection_Remove_System_Int32_">Remove(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the Section at the specified index from the SectionCollection.</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="GrapeCity_ActiveReports_SectionCollection_Changed" data-uid="GrapeCity.ActiveReports.SectionCollection.Changed">
          <a class="xref" href="GrapeCity.ActiveReports.SectionCollection.Changed.html">Changed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the members of the SectionCollection have changed.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ApplyDefaults.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ApplyDefaults__1___0_">ObjectExtensions.ApplyDefaults&lt;TObject&gt;(TObject)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.SetValue.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_SetValue__1___0_System_ComponentModel_PropertyDescriptor_System_String_">ObjectExtensions.SetValue&lt;TObject&gt;(TObject, PropertyDescriptor, string)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ToNameValueCollection.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ToNameValueCollection_System_Object_">ObjectExtensions.ToNameValueCollection(object)</a>
  </div>

</div>
