# C1.Win.GanttView.TaskComparer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_GanttView_TaskComparer" data-uid="C1.Win.GanttView.TaskComparer" class="text-break">TaskComparer Class
</h1>
  <div class="markdown level0 summary"><p>This class is a task comparer for sorting.</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">TaskComparer</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icomparer-1">IComparer</a>&lt;<a class="xref" href="C1.Win.GanttView.Task.html">Task</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.GanttView.html">C1.Win.GanttView</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.GanttView.10.dll</h6>
  <h5 id="C1_Win_GanttView_TaskComparer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TaskComparer : IComparer&lt;Task&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TaskComparer
    Implements IComparer(Of Task)</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_Win_GanttView_TaskComparer__ctor" data-uid="C1.Win.GanttView.TaskComparer.#ctor">
          <a class="xref" href="C1.Win.GanttView.TaskComparer.-ctor.html#C1_Win_GanttView_TaskComparer__ctor">TaskComparer()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Win.GanttView.TaskComparer.html">TaskComparer</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_TaskComparer__ctor_System_ComponentModel_PropertyDescriptor_System_ComponentModel_ListSortDirection_" data-uid="C1.Win.GanttView.TaskComparer.#ctor(System.ComponentModel.PropertyDescriptor,System.ComponentModel.ListSortDirection)">
          <a class="xref" href="C1.Win.GanttView.TaskComparer.-ctor.html#C1_Win_GanttView_TaskComparer__ctor_System_ComponentModel_PropertyDescriptor_System_ComponentModel_ListSortDirection_">TaskComparer(PropertyDescriptor, ListSortDirection)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Win.GanttView.TaskComparer.html">TaskComparer</a> class with property comparer info.</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_Win_GanttView_TaskComparer_Properties" data-uid="C1.Win.GanttView.TaskComparer.Properties">
          <a class="xref" href="C1.Win.GanttView.TaskComparer.Properties.html#C1_Win_GanttView_TaskComparer_Properties">Properties</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of <a class="xref" href="C1.Win.GanttView.PropertyComparerInfo.html">PropertyComparerInfo</a> 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_Win_GanttView_TaskComparer_AddPropertyComparerInfo_System_ComponentModel_PropertyDescriptor_System_ComponentModel_ListSortDirection_" data-uid="C1.Win.GanttView.TaskComparer.AddPropertyComparerInfo(System.ComponentModel.PropertyDescriptor,System.ComponentModel.ListSortDirection)">
          <a class="xref" href="C1.Win.GanttView.TaskComparer.AddPropertyComparerInfo.html#C1_Win_GanttView_TaskComparer_AddPropertyComparerInfo_System_ComponentModel_PropertyDescriptor_System_ComponentModel_ListSortDirection_">AddPropertyComparerInfo(PropertyDescriptor, ListSortDirection)</a>
        </td>
        <td class="markdown level1 summary"><p>Add a new instance of <a class="xref" href="C1.Win.GanttView.PropertyComparerInfo.html">PropertyComparerInfo</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_TaskComparer_Compare_C1_Win_GanttView_Task_C1_Win_GanttView_Task_" data-uid="C1.Win.GanttView.TaskComparer.Compare(C1.Win.GanttView.Task,C1.Win.GanttView.Task)">
          <a class="xref" href="C1.Win.GanttView.TaskComparer.Compare.html#C1_Win_GanttView_TaskComparer_Compare_C1_Win_GanttView_Task_C1_Win_GanttView_Task_">Compare(Task, Task)</a>
        </td>
        <td class="markdown level1 summary"><p>Compares two tasks and returns a value indicating whether one is less than, equal to, or greater than the other.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
