# FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_ConditionalFormattingModelEventArgs__ctor_" data-uid="FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.#ctor*">ConditionalFormattingModelEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_ConditionalFormattingModelEventArgs__ctor_" data-uid="FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_ConditionalFormattingModelEventArgs__ctor_FarPoint_Win_Spread_ConditionalFormatting_FarPoint_Win_Spread_ConditionalFormattingModelEventType_" data-uid="FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.#ctor(FarPoint.Win.Spread.ConditionalFormatting,FarPoint.Win.Spread.ConditionalFormattingModelEventType)">ConditionalFormattingModelEventArgs(ConditionalFormatting, ConditionalFormattingModelEventType)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.html">ConditionalFormattingModelEventArgs</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ConditionalFormattingModelEventArgs(ConditionalFormatting conditionalFormatting, ConditionalFormattingModelEventType type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(conditionalFormatting As ConditionalFormatting, type As ConditionalFormattingModelEventType)</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.ConditionalFormatting.html">ConditionalFormatting</a></td>
      <td><span class="parametername">conditionalFormatting</span></td>
      <td><p>The conditional formatting.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.ConditionalFormattingModelEventType.html">ConditionalFormattingModelEventType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_ConditionalFormattingModelEventArgs__ctor_" data-uid="FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_ConditionalFormattingModelEventArgs__ctor_System_Int32_System_Int32_System_Int32_System_Int32_FarPoint_Win_Spread_ConditionalFormattingModelEventType_System_Collections_Generic_ICollection_FarPoint_Win_Spread_ConditionalFormatting__System_Collections_Generic_ICollection_FarPoint_Win_Spread_Model_CellRange__" data-uid="FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.#ctor(System.Int32,System.Int32,System.Int32,System.Int32,FarPoint.Win.Spread.ConditionalFormattingModelEventType,System.Collections.Generic.ICollection{FarPoint.Win.Spread.ConditionalFormatting},System.Collections.Generic.ICollection{FarPoint.Win.Spread.Model.CellRange})">ConditionalFormattingModelEventArgs(int, int, int, int, ConditionalFormattingModelEventType, ICollection&lt;ConditionalFormatting&gt;, ICollection&lt;CellRange&gt;)</h4>
<div class="markdown level1 summary"><p>Creates a new Changed event arguments object for the conditional formatting model for the sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ConditionalFormattingModelEventArgs(int row, int column, int rowCount, int columnCount, ConditionalFormattingModelEventType type, ICollection&lt;ConditionalFormatting&gt; affectedCFs, ICollection&lt;CellRange&gt; affectedCellranges)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, type As ConditionalFormattingModelEventType, affectedCFs As ICollection(Of ConditionalFormatting), affectedCellranges As ICollection(Of CellRange))</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">row</span></td>
      <td><p>Row index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Number of rows</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.ConditionalFormattingModelEventType.html">ConditionalFormattingModelEventType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Type of change that occurred in the conditional formatting model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="FarPoint.Win.Spread.ConditionalFormatting.html">ConditionalFormatting</a>&gt;</td>
      <td><span class="parametername">affectedCFs</span></td>
      <td><p>The affected conditional formattings</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a>&gt;</td>
      <td><span class="parametername">affectedCellranges</span></td>
      <td><p>The affected cell ranges</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_ConditionalFormattingModelEventArgs__ctor_" data-uid="FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_ConditionalFormattingModelEventArgs__ctor_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_FarPoint_Win_Spread_ConditionalFormattingModelEventType_System_Collections_Generic_ICollection_FarPoint_Win_Spread_ConditionalFormatting__System_Collections_Generic_ICollection_FarPoint_Win_Spread_Model_CellRange__" data-uid="FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.#ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,FarPoint.Win.Spread.ConditionalFormattingModelEventType,System.Collections.Generic.ICollection{FarPoint.Win.Spread.ConditionalFormatting},System.Collections.Generic.ICollection{FarPoint.Win.Spread.Model.CellRange})">ConditionalFormattingModelEventArgs(int, int, int, int, int, int, ConditionalFormattingModelEventType, ICollection&lt;ConditionalFormatting&gt;, ICollection&lt;CellRange&gt;)</h4>
<div class="markdown level1 summary"><p>Creates a new Changed event arguments object for the conditional formatting model for the sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ConditionalFormattingModelEventArgs(int row, int column, int rowCount, int columnCount, int targetRow, int targetColumn, ConditionalFormattingModelEventType type, ICollection&lt;ConditionalFormatting&gt; affectedCFs, ICollection&lt;CellRange&gt; affectedCellranges)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, targetRow As Integer, targetColumn As Integer, type As ConditionalFormattingModelEventType, affectedCFs As ICollection(Of ConditionalFormatting), affectedCellranges As ICollection(Of CellRange))</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">row</span></td>
      <td><p>Row index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Number of rows</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">targetRow</span></td>
      <td><p>Target row index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">targetColumn</span></td>
      <td><p>Target column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.ConditionalFormattingModelEventType.html">ConditionalFormattingModelEventType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Type of change that occurred in the conditional formatting model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="FarPoint.Win.Spread.ConditionalFormatting.html">ConditionalFormatting</a>&gt;</td>
      <td><span class="parametername">affectedCFs</span></td>
      <td><p>The affected conditional formattings</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a>&gt;</td>
      <td><span class="parametername">affectedCellranges</span></td>
      <td><p>The affected cell ranges</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_ConditionalFormattingModelEventArgs__ctor_" data-uid="FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_ConditionalFormattingModelEventArgs__ctor_FarPoint_Win_Spread_ConditionalFormatting_System_Boolean_" data-uid="FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.#ctor(FarPoint.Win.Spread.ConditionalFormatting,System.Boolean)">ConditionalFormattingModelEventArgs(ConditionalFormatting, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Win.Spread.ConditionalFormattingModelEventArgs.html">ConditionalFormattingModelEventArgs</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ConditionalFormattingModelEventArgs(ConditionalFormatting conditionalFormatting, bool isAffectedLayout)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(conditionalFormatting As ConditionalFormatting, isAffectedLayout 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="FarPoint.Win.Spread.ConditionalFormatting.html">ConditionalFormatting</a></td>
      <td><span class="parametername">conditionalFormatting</span></td>
      <td><p>The conditional formatting.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isAffectedLayout</span></td>
      <td><p>Indicates if the change has affected the conditional formatting layout.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
