# GrapeCity.ActiveReports.PageReportModel.SortByCollection

## Content

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



  <h1 id="GrapeCity_ActiveReports_PageReportModel_SortByCollection" data-uid="GrapeCity.ActiveReports.PageReportModel.SortByCollection" class="text-break">SortByCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a strongly typed collection of <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortBy.html">SortBy</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="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortBy.html">SortBy</a>&gt;</div>
    <div class="level2"><span class="xref">SortByCollection</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;<a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortBy.html">SortBy</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="GrapeCity.ActiveReports.PageReportModel.SortBy.html">SortBy</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.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortBy.html">SortBy</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="GrapeCity.ActiveReports.PageReportModel.SortBy.html">SortBy</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="GrapeCity.ActiveReports.PageReportModel.SortBy.html">SortBy</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="GrapeCity.ActiveReports.PageReportModel.IValidateable.html">IValidateable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.html">GrapeCity.ActiveReports.PageReportModel</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_SortByCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class SortByCollection : Collection&lt;SortBy&gt;, IList&lt;SortBy&gt;, ICollection&lt;SortBy&gt;, IList, ICollection, IReadOnlyList&lt;SortBy&gt;, IReadOnlyCollection&lt;SortBy&gt;, IEnumerable&lt;SortBy&gt;, IEnumerable, IValidateable</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="GrapeCity_ActiveReports_PageReportModel_SortByCollection__ctor" data-uid="GrapeCity.ActiveReports.PageReportModel.SortByCollection.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortByCollection.-ctor.html#GrapeCity_ActiveReports_PageReportModel_SortByCollection__ctor">SortByCollection()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortByCollection.html">SortByCollection</a> class.</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_PageReportModel_SortByCollection_AddRange_System_Collections_Generic_IEnumerable_GrapeCity_ActiveReports_PageReportModel_SortBy__" data-uid="GrapeCity.ActiveReports.PageReportModel.SortByCollection.AddRange(System.Collections.Generic.IEnumerable{GrapeCity.ActiveReports.PageReportModel.SortBy})">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortByCollection.AddRange.html#GrapeCity_ActiveReports_PageReportModel_SortByCollection_AddRange_System_Collections_Generic_IEnumerable_GrapeCity_ActiveReports_PageReportModel_SortBy__">AddRange(IEnumerable&lt;SortBy&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a collection of <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortBy.html">SortBy</a> objects to the existing <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortByCollection.html">SortByCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_SortByCollection_ToArray" data-uid="GrapeCity.ActiveReports.PageReportModel.SortByCollection.ToArray">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortByCollection.ToArray.html#GrapeCity_ActiveReports_PageReportModel_SortByCollection_ToArray">ToArray()</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the elements of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortByCollection.html">SortByCollection</a> to a new array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_SortByCollection_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_" data-uid="GrapeCity.ActiveReports.PageReportModel.SortByCollection.Validate(GrapeCity.ActiveReports.PageReportModel.ValidationContext)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortByCollection.Validate.html#GrapeCity_ActiveReports_PageReportModel_SortByCollection_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_">Validate(ValidationContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates the current state of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.SortByCollection.html">SortByCollection</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange.html#GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__">CollectionExtensions.AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</a>
  </div>

</div>
