# C1.WPF.FlexGrid.CellFactory.ApplyCellStyles

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_FlexGrid_CellFactory_ApplyCellStyles_" data-uid="C1.WPF.FlexGrid.CellFactory.ApplyCellStyles*">ApplyCellStyles Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_FlexGrid_CellFactory_ApplyCellStyles_" data-uid="C1.WPF.FlexGrid.CellFactory.ApplyCellStyles*"></a>
<h4 id="C1_WPF_FlexGrid_CellFactory_ApplyCellStyles_C1_WPF_FlexGrid_C1FlexGrid_C1_WPF_FlexGrid_CellType_C1_WPF_FlexGrid_CellRange_System_Windows_Controls_Border_" data-uid="C1.WPF.FlexGrid.CellFactory.ApplyCellStyles(C1.WPF.FlexGrid.C1FlexGrid,C1.WPF.FlexGrid.CellType,C1.WPF.FlexGrid.CellRange,System.Windows.Controls.Border)">ApplyCellStyles(C1FlexGrid, CellType, CellRange, Border)</h4>
<div class="markdown level1 summary"><p>Allows derived classes to finish customizing cells after they have been
created and all styles have been applied.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void ApplyCellStyles(C1FlexGrid grid, CellType cellType, CellRange rng, Border bdr)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub ApplyCellStyles(grid As C1FlexGrid, cellType As CellType, rng As CellRange, bdr As Border)</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="C1.WPF.FlexGrid.C1FlexGrid.html">C1FlexGrid</a></td>
      <td><span class="parametername">grid</span></td>
      <td><p><a class="xref" href="C1.WPF.FlexGrid.C1FlexGrid.html">C1FlexGrid</a> that owns the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.FlexGrid.CellType.html">CellType</a></td>
      <td><span class="parametername">cellType</span></td>
      <td><p><a class="xref" href="C1.WPF.FlexGrid.CellType.html">CellType</a> that specifies the type of cell to be created.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a></td>
      <td><span class="parametername">rng</span></td>
      <td><p><a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a> that specifies the row and column represented by the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.border">Border</a></td>
      <td><span class="parametername">bdr</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.border">Border</a> element that represents the cell.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
