# FarPoint.Win.Spread.ComplexSortInfo.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_ComplexSortInfo__ctor_" data-uid="FarPoint.Win.Spread.ComplexSortInfo.#ctor*">ComplexSortInfo Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_ComplexSortInfo__ctor_" data-uid="FarPoint.Win.Spread.ComplexSortInfo.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_ComplexSortInfo__ctor_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.ComplexSortInfo.#ctor(System.Int32,System.Boolean)">ComplexSortInfo(int, bool)</h4>
<div class="markdown level1 summary"><p>Creates a SortInfo object with the specified order and comparison done
using the system default comparer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexSortInfo(int index, bool ascending)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(index As Integer, ascending As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>Index of the column or row on which to sort</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ascending</span></td>
      <td><p>Whether the sort order is ascending</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_ComplexSortInfo__ctor_" data-uid="FarPoint.Win.Spread.ComplexSortInfo.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_ComplexSortInfo__ctor_FarPoint_Win_Spread_ComplexSortInfo_" data-uid="FarPoint.Win.Spread.ComplexSortInfo.#ctor(FarPoint.Win.Spread.ComplexSortInfo)">ComplexSortInfo(ComplexSortInfo)</h4>
<div class="markdown level1 summary"><p>Creates a SortInfo object from another SortInfo object</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexSortInfo(ComplexSortInfo source)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(source As ComplexSortInfo)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.ComplexSortInfo.html">ComplexSortInfo</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>Another SortInfo object</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_ComplexSortInfo__ctor_" data-uid="FarPoint.Win.Spread.ComplexSortInfo.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_ComplexSortInfo__ctor_System_Int32_System_Drawing_Color_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.Spread.ComplexSortInfo.#ctor(System.Int32,System.Drawing.Color,System.Boolean,System.Boolean)">ComplexSortInfo(int, Color, bool, bool)</h4>
<div class="markdown level1 summary"><p>Creates a ComplexSortInfo object with a specified order and comparison that is handled by the spread default color comparer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexSortInfo(int index, Color color, bool isForeColor, bool ascending)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(index As Integer, color As Color, isForeColor As Boolean, ascending As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>Index of the column or row on which to sort</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>Base color to compare</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isForeColor</span></td>
      <td><p>Whether the base color is the forecolor</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ascending</span></td>
      <td><p>Whether the sort order is Top sort</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_ComplexSortInfo__ctor_" data-uid="FarPoint.Win.Spread.ComplexSortInfo.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_ComplexSortInfo__ctor_System_Int32_FarPoint_Win_Spread_ConditionalFormattingIconSetIndex_System_Boolean_" data-uid="FarPoint.Win.Spread.ComplexSortInfo.#ctor(System.Int32,FarPoint.Win.Spread.ConditionalFormattingIconSetIndex,System.Boolean)">ComplexSortInfo(int, ConditionalFormattingIconSetIndex, bool)</h4>
<div class="markdown level1 summary"><p>Creates a ComplexSortInfo object with a specified order and comparison done by spread default icon comparer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ComplexSortInfo(int index, ConditionalFormattingIconSetIndex icon, bool ascending)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(index As Integer, icon As ConditionalFormattingIconSetIndex, ascending As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>Index of the column or row on which to sort</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.ConditionalFormattingIconSetIndex.html">ConditionalFormattingIconSetIndex</a></td>
      <td><span class="parametername">icon</span></td>
      <td><p>Base icon to compare</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ascending</span></td>
      <td><p>Whether the sort order is Top sort</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_ComplexSortInfo__ctor_" data-uid="FarPoint.Win.Spread.ComplexSortInfo.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_ComplexSortInfo__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.ComplexSortInfo.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">ComplexSortInfo(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Win.Spread.ComplexSortInfo.html">ComplexSortInfo</a> class from serialization.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected ComplexSortInfo(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>The System.Runtime.Serialization.SerializationInfo to populate with data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
