# C1.Report.SortDefinition

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_SortDefinition" data-uid="C1.Report.SortDefinition" class="text-break">SortDefinition Class
</h1>
  <div class="markdown level0 summary"><p>Defines the sorting parameters.</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">SortDefinition</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Report.IScriptContextProvider.html">IScriptContextProvider</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_SortDefinition_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SortDefinition : IScriptContextProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SortDefinition
    Implements IScriptContextProvider</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="C1_Report_SortDefinition__ctor" data-uid="C1.Report.SortDefinition.#ctor">
          <a class="xref" href="C1.Report.SortDefinition.-ctor.html#C1_Report_SortDefinition__ctor">SortDefinition()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Report.SortDefinition.html">SortDefinition</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SortDefinition__ctor_System_String_C1_Report_SortDirection_" data-uid="C1.Report.SortDefinition.#ctor(System.String,C1.Report.SortDirection)">
          <a class="xref" href="C1.Report.SortDefinition.-ctor.html#C1_Report_SortDefinition__ctor_System_String_C1_Report_SortDirection_">SortDefinition(string, SortDirection)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Report.SortDefinition.html">SortDefinition</a> class,
specifying the sort expression and direction.</p>
</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_Report_SortDefinition_Direction" data-uid="C1.Report.SortDefinition.Direction">
          <a class="xref" href="C1.Report.SortDefinition.Direction.html#C1_Report_SortDefinition_Direction">Direction</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the sort direction.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SortDefinition_Expression" data-uid="C1.Report.SortDefinition.Expression">
          <a class="xref" href="C1.Report.SortDefinition.Expression.html#C1_Report_SortDefinition_Expression">Expression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the string defining the sort expression.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SortDefinition_Owner" data-uid="C1.Report.SortDefinition.Owner">
          <a class="xref" href="C1.Report.SortDefinition.Owner.html#C1_Report_SortDefinition_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.SortDefinitionCollection.html">SortDefinitionCollection</a> collection containing this object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_SortDefinition_ParentReport" data-uid="C1.Report.SortDefinition.ParentReport">
          <a class="xref" href="C1.Report.SortDefinition.ParentReport.html#C1_Report_SortDefinition_ParentReport">ParentReport</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a> containing this object.</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_SortDefinition_AssignFrom_C1_Report_SortDefinition_" data-uid="C1.Report.SortDefinition.AssignFrom(C1.Report.SortDefinition)">
          <a class="xref" href="C1.Report.SortDefinition.AssignFrom.html#C1_Report_SortDefinition_AssignFrom_C1_Report_SortDefinition_">AssignFrom(SortDefinition)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies <a class="xref" href="C1.Report.SortDefinition.Expression.html#C1_Report_SortDefinition_Expression">Expression</a> and <a class="xref" href="C1.Report.SortDefinition.Direction.html#C1_Report_SortDefinition_Direction">Direction</a> properties from another <a class="xref" href="C1.Report.SortDefinition.html">SortDefinition</a> object.
(Note that the <a class="xref" href="C1.Report.SortDefinition.Owner.html#C1_Report_SortDefinition_Owner">Owner</a> property is not copied.)</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
