# FarPoint.Win.Spread.FormatCells.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_FormatCells__ctor_" data-uid="FarPoint.Win.Spread.FormatCells.#ctor*">FormatCells Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_FormatCells__ctor_" data-uid="FarPoint.Win.Spread.FormatCells.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_FormatCells__ctor_GrapeCity_Spreadsheet_IRange_FarPoint_Win_Spread_FormatCells_FormatCellsTab_" data-uid="FarPoint.Win.Spread.FormatCells.#ctor(GrapeCity.Spreadsheet.IRange,FarPoint.Win.Spread.FormatCells.FormatCellsTab)">FormatCells(IRange, FormatCellsTab)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Win.Spread.FormatCells.html">FormatCells</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 FormatCells(IRange cells, FormatCells.FormatCellsTab activeTab = FormatCellsTab.Number)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(cells As IRange, Optional activeTab As FormatCells.FormatCellsTab = FormatCellsTab.Number)</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="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.IRange.html">IRange</a></td>
      <td><span class="parametername">cells</span></td>
      <td><p>The <a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.Reference.html">Reference</a> value indicates the formatted cells.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.FormatCells.html">FormatCells</a>.<a class="xref" href="FarPoint.Win.Spread.FormatCells.FormatCellsTab.html">FormatCellsTab</a></td>
      <td><span class="parametername">activeTab</span></td>
      <td><p>The default tab to display.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_FormatCells__ctor_" data-uid="FarPoint.Win.Spread.FormatCells.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_FormatCells__ctor_GrapeCity_Spreadsheet_IWorksheet_GrapeCity_Spreadsheet_Reference_FarPoint_Win_Spread_FormatCells_FormatCellsTab_" data-uid="FarPoint.Win.Spread.FormatCells.#ctor(GrapeCity.Spreadsheet.IWorksheet,GrapeCity.Spreadsheet.Reference,FarPoint.Win.Spread.FormatCells.FormatCellsTab)">FormatCells(IWorksheet, Reference, FormatCellsTab)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Win.Spread.FormatCells.html">FormatCells</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 FormatCells(IWorksheet worksheet, Reference cells, FormatCells.FormatCellsTab activeTab = FormatCellsTab.Number)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(worksheet As IWorksheet, cells As Reference, Optional activeTab As FormatCells.FormatCellsTab = FormatCellsTab.Number)</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="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.IWorksheet.html">IWorksheet</a></td>
      <td><span class="parametername">worksheet</span></td>
      <td><p>The worksheet contains formatted cells.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.Reference.html">Reference</a></td>
      <td><span class="parametername">cells</span></td>
      <td><p>The <a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.Reference.html">Reference</a> value indicates the formatted cells.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.FormatCells.html">FormatCells</a>.<a class="xref" href="FarPoint.Win.Spread.FormatCells.FormatCellsTab.html">FormatCellsTab</a></td>
      <td><span class="parametername">activeTab</span></td>
      <td><p>The default tab to display.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_FormatCells__ctor_" data-uid="FarPoint.Win.Spread.FormatCells.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_FormatCells__ctor_GrapeCity_Spreadsheet_IWorksheet_GrapeCity_Spreadsheet_Reference___FarPoint_Win_Spread_FormatCells_FormatCellsTab_" data-uid="FarPoint.Win.Spread.FormatCells.#ctor(GrapeCity.Spreadsheet.IWorksheet,GrapeCity.Spreadsheet.Reference[],FarPoint.Win.Spread.FormatCells.FormatCellsTab)">FormatCells(IWorksheet, Reference[], FormatCellsTab)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Win.Spread.FormatCells.html">FormatCells</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 FormatCells(IWorksheet worksheet, Reference[] cells, FormatCells.FormatCellsTab activeTab = FormatCellsTab.Number)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(worksheet As IWorksheet, cells As Reference(), Optional activeTab As FormatCells.FormatCellsTab = FormatCellsTab.Number)</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="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.IWorksheet.html">IWorksheet</a></td>
      <td><span class="parametername">worksheet</span></td>
      <td><p>The worksheet contains formatted cells.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.Reference.html">Reference</a>[]</td>
      <td><span class="parametername">cells</span></td>
      <td><p>The <a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.Reference.html">Reference</a> array indicates the formatted cells.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.FormatCells.html">FormatCells</a>.<a class="xref" href="FarPoint.Win.Spread.FormatCells.FormatCellsTab.html">FormatCellsTab</a></td>
      <td><span class="parametername">activeTab</span></td>
      <td><p>The default tab to display.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
