# GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.FormatCells

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_FormatCells_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.FormatCells*">FormatCells Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_FormatCells_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.FormatCells*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_FormatCells_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_GrapeCity_Spreadsheet_IRange_GrapeCity_Wpf_SpreadSheet_Dialogs_FormatCellsTabs_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.FormatCells(GrapeCity.Wpf.SpreadSheet.GcSpreadSheet,GrapeCity.Spreadsheet.IRange,GrapeCity.Wpf.SpreadSheet.Dialogs.FormatCellsTabs)">FormatCells(GcSpreadSheet, IRange, FormatCellsTabs)</h4>
<div class="markdown level1 summary"><p>Gets the format cells dialog that customizes the cell settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IDialog FormatCells(GcSpreadSheet spread, IRange range = null, FormatCellsTabs activeTab = FormatCellsTabs.Number)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FormatCells(spread As GcSpreadSheet, Optional range As IRange = Nothing, Optional activeTab As FormatCellsTabs = FormatCellsTabs.Number) As IDialog</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.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a></td>
      <td><span class="parametername">spread</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a> control to work with.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.IRange.html">IRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The current cell range to work with.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Wpf.SpreadSheet.Dialogs.FormatCellsTabs.html">FormatCellsTabs</a></td>
      <td><span class="parametername">activeTab</span></td>
      <td><p>The default active tab.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Wpf.SpreadSheet.Dialogs.IDialog.html">IDialog</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.Dialogs.IDialog.html">IDialog</a> object represents the format cells dialog.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_FormatCells_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.FormatCells*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_FormatCells_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_GrapeCity_Spreadsheet_IRange_GrapeCity_Spreadsheet_StyleFormat_GrapeCity_Wpf_SpreadSheet_Dialogs_FormatCellsTabs_System_Int32_System_Object_System_Boolean_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.FormatCells(GrapeCity.Wpf.SpreadSheet.GcSpreadSheet,GrapeCity.Spreadsheet.IRange,GrapeCity.Spreadsheet.StyleFormat,GrapeCity.Wpf.SpreadSheet.Dialogs.FormatCellsTabs,System.Int32,System.Object,System.Boolean)">FormatCells(GcSpreadSheet, IRange, StyleFormat, FormatCellsTabs, int, object, bool)</h4>
<div class="markdown level1 summary"><p>Gets the format cells dialog that customizes the cell settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IDialog FormatCells(GcSpreadSheet spread, IRange range, StyleFormat styleFormat, FormatCellsTabs activeTab = FormatCellsTabs.Number, int numFmtCategory = 0, object cellValue = null, bool isTable = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FormatCells(spread As GcSpreadSheet, range As IRange, styleFormat As StyleFormat, Optional activeTab As FormatCellsTabs = FormatCellsTabs.Number, Optional numFmtCategory As Integer = 0, Optional cellValue As Object = Nothing, Optional isTable As Boolean = False) As IDialog</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.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a></td>
      <td><span class="parametername">spread</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a> control to work with.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.IRange.html">IRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The current cell range to work with.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.StyleFormat.html">StyleFormat</a></td>
      <td><span class="parametername">styleFormat</span></td>
      <td><p>The <a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.StyleFormat.html">StyleFormat</a> value to display as current settings.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Wpf.SpreadSheet.Dialogs.FormatCellsTabs.html">FormatCellsTabs</a></td>
      <td><span class="parametername">activeTab</span></td>
      <td><p>The default active tab.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">numFmtCategory</span></td>
      <td><p>The default selected number format category.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">cellValue</span></td>
      <td><p>The cell value to display as preview.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isTable</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Wpf.SpreadSheet.Dialogs.IDialog.html">IDialog</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.Dialogs.IDialog.html">IDialog</a> object represents the format cells dialog.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_FormatCells_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.FormatCells*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_FormatCells_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_GrapeCity_Spreadsheet_StyleFormat_GrapeCity_Wpf_SpreadSheet_Dialogs_FormatCellsTabs_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.FormatCells(GrapeCity.Wpf.SpreadSheet.GcSpreadSheet,GrapeCity.Spreadsheet.StyleFormat,GrapeCity.Wpf.SpreadSheet.Dialogs.FormatCellsTabs)">FormatCells(GcSpreadSheet, StyleFormat, FormatCellsTabs)</h4>
<div class="markdown level1 summary"><p>Gets the format cells dialog that customizes the cell settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IDialog FormatCells(GcSpreadSheet spread, StyleFormat styleFormat, FormatCellsTabs activeTab = FormatCellsTabs.Number)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FormatCells(spread As GcSpreadSheet, styleFormat As StyleFormat, Optional activeTab As FormatCellsTabs = FormatCellsTabs.Number) As IDialog</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.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a></td>
      <td><span class="parametername">spread</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a> control to work with.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.StyleFormat.html">StyleFormat</a></td>
      <td><span class="parametername">styleFormat</span></td>
      <td><p>The <a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.StyleFormat.html">StyleFormat</a> value to display as current settings.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Wpf.SpreadSheet.Dialogs.FormatCellsTabs.html">FormatCellsTabs</a></td>
      <td><span class="parametername">activeTab</span></td>
      <td><p>The default active tab.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Wpf.SpreadSheet.Dialogs.IDialog.html">IDialog</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.Dialogs.IDialog.html">IDialog</a> object represents the format cells dialog.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
