# C1.WPF.Grid.GridLinkedCellFactory.PrepareCell

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Grid_GridLinkedCellFactory_PrepareCell_" data-uid="C1.WPF.Grid.GridLinkedCellFactory.PrepareCell*">PrepareCell Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Grid_GridLinkedCellFactory_PrepareCell_" data-uid="C1.WPF.Grid.GridLinkedCellFactory.PrepareCell*"></a>
<h4 id="C1_WPF_Grid_GridLinkedCellFactory_PrepareCell_C1_WPF_Grid_GridCellType_C1_WPF_Grid_GridCellRange_C1_WPF_Grid_GridCellView_System_Windows_Thickness_" data-uid="C1.WPF.Grid.GridLinkedCellFactory.PrepareCell(C1.WPF.Grid.GridCellType,C1.WPF.Grid.GridCellRange,C1.WPF.Grid.GridCellView,System.Windows.Thickness)">PrepareCell(GridCellType, GridCellRange, GridCellView, Thickness)</h4>
<div class="markdown level1 summary"><p>Prepares the cell to be shown.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void PrepareCell(GridCellType cellType, GridCellRange range, GridCellView cell, Thickness internalBorders)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub PrepareCell(cellType As GridCellType, range As GridCellRange, cell As GridCellView, internalBorders As Thickness)</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.Grid.GridCellType.html">GridCellType</a></td>
      <td><span class="parametername">cellType</span></td>
      <td><p>Type of the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.Grid.GridCellRange.html">GridCellRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.Grid.GridCellView.html">GridCellView</a></td>
      <td><span class="parametername">cell</span></td>
      <td><p>The cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.thickness">Thickness</a></td>
      <td><span class="parametername">internalBorders</span></td>
      <td><p>A thickness object containing zeros or ones to represent whether the borders of the cell are internal 1 or external 0.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.WPF.Grid.GridCellFactory.PrepareCell.html#C1_WPF_Grid_GridCellFactory_PrepareCell_C1_WPF_Grid_GridCellType_C1_WPF_Grid_GridCellRange_C1_WPF_Grid_GridCellView_System_Windows_Thickness_">GridCellFactory.PrepareCell(GridCellType, GridCellRange, GridCellView, Thickness)</a></div>
</div>
