# C1.WPF.FlexGrid.ExcelCellFactory

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_FlexGrid_ExcelCellFactory" data-uid="C1.WPF.FlexGrid.ExcelCellFactory" class="text-break">ExcelCellFactory Class
</h1>
  <div class="markdown level0 summary"><p>Custom cell factory that displays Excel-style row and column headers.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="../C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.CellFactory.html">CellFactory</a></div>
    <div class="level2"><span class="xref">ExcelCellFactory</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="../C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.ICellFactory.html">ICellFactory</a></div>
    <div><a class="xref" href="../C1.WPF.FlexGrid.4.6.2/C1.WPF.FlexGrid.ICustomCellRender.html">ICustomCellRender</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.FlexGrid.html">C1.WPF.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.FlexSheet.4.6.2.dll</h6>
  <h5 id="C1_WPF_FlexGrid_ExcelCellFactory_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ExcelCellFactory : CellFactory, ICellFactory, ICustomCellRender</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ExcelCellFactory
    Inherits CellFactory
    Implements ICellFactory, ICustomCellRender</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_FlexGrid_ExcelCellFactory__ctor_C1_WPF_FlexGrid_C1FlexGrid_" data-uid="C1.WPF.FlexGrid.ExcelCellFactory.#ctor(C1.WPF.FlexGrid.C1FlexGrid)">
          <a class="xref" href="C1.WPF.FlexGrid.ExcelCellFactory.-ctor.html#C1_WPF_FlexGrid_ExcelCellFactory__ctor_C1_WPF_FlexGrid_C1FlexGrid_">ExcelCellFactory(C1FlexGrid)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.WPF.FlexGrid.ExcelCellFactory.html">ExcelCellFactory</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_FlexGrid_ExcelCellFactory_ApplyCellStyles_C1_WPF_FlexGrid_C1FlexGrid_C1_WPF_FlexGrid_CellType_C1_WPF_FlexGrid_CellRange_System_Windows_Controls_Border_" data-uid="C1.WPF.FlexGrid.ExcelCellFactory.ApplyCellStyles(C1.WPF.FlexGrid.C1FlexGrid,C1.WPF.FlexGrid.CellType,C1.WPF.FlexGrid.CellRange,System.Windows.Controls.Border)">
          <a class="xref" href="C1.WPF.FlexGrid.ExcelCellFactory.ApplyCellStyles.html#C1_WPF_FlexGrid_ExcelCellFactory_ApplyCellStyles_C1_WPF_FlexGrid_C1FlexGrid_C1_WPF_FlexGrid_CellType_C1_WPF_FlexGrid_CellRange_System_Windows_Controls_Border_">ApplyCellStyles(C1FlexGrid, CellType, CellRange, Border)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies custom styles to the outline row.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_ExcelCellFactory_CreateCellBorder_C1_WPF_FlexGrid_C1FlexGrid_C1_WPF_FlexGrid_CellType_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.ExcelCellFactory.CreateCellBorder(C1.WPF.FlexGrid.C1FlexGrid,C1.WPF.FlexGrid.CellType,C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.ExcelCellFactory.CreateCellBorder.html#C1_WPF_FlexGrid_ExcelCellFactory_CreateCellBorder_C1_WPF_FlexGrid_C1FlexGrid_C1_WPF_FlexGrid_CellType_C1_WPF_FlexGrid_CellRange_">CreateCellBorder(C1FlexGrid, CellType, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.border">Border</a> element that represents the background and
border of a grid cell and contains the cell data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_ExcelCellFactory_CreateCellContent_C1_WPF_FlexGrid_C1FlexGrid_System_Windows_Controls_Border_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.ExcelCellFactory.CreateCellContent(C1.WPF.FlexGrid.C1FlexGrid,System.Windows.Controls.Border,C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.ExcelCellFactory.CreateCellContent.html#C1_WPF_FlexGrid_ExcelCellFactory_CreateCellContent_C1_WPF_FlexGrid_C1FlexGrid_System_Windows_Controls_Border_C1_WPF_FlexGrid_CellRange_">CreateCellContent(C1FlexGrid, Border, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Provides content for the grid cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_ExcelCellFactory_CreateCellEditor_C1_WPF_FlexGrid_C1FlexGrid_C1_WPF_FlexGrid_CellType_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.ExcelCellFactory.CreateCellEditor(C1.WPF.FlexGrid.C1FlexGrid,C1.WPF.FlexGrid.CellType,C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.ExcelCellFactory.CreateCellEditor.html#C1_WPF_FlexGrid_ExcelCellFactory_CreateCellEditor_C1_WPF_FlexGrid_C1FlexGrid_C1_WPF_FlexGrid_CellType_C1_WPF_FlexGrid_CellRange_">CreateCellEditor(C1FlexGrid, CellType, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Provides editable content for the grid cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_ExcelCellFactory_CreateColumnHeaderContent_C1_WPF_FlexGrid_C1FlexGrid_System_Windows_Controls_Border_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.ExcelCellFactory.CreateColumnHeaderContent(C1.WPF.FlexGrid.C1FlexGrid,System.Windows.Controls.Border,C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.ExcelCellFactory.CreateColumnHeaderContent.html#C1_WPF_FlexGrid_ExcelCellFactory_CreateColumnHeaderContent_C1_WPF_FlexGrid_C1FlexGrid_System_Windows_Controls_Border_C1_WPF_FlexGrid_CellRange_">CreateColumnHeaderContent(C1FlexGrid, Border, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Provides content for the column header cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_ExcelCellFactory_CreateRowHeaderContent_C1_WPF_FlexGrid_C1FlexGrid_System_Windows_Controls_Border_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.ExcelCellFactory.CreateRowHeaderContent(C1.WPF.FlexGrid.C1FlexGrid,System.Windows.Controls.Border,C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.ExcelCellFactory.CreateRowHeaderContent.html#C1_WPF_FlexGrid_ExcelCellFactory_CreateRowHeaderContent_C1_WPF_FlexGrid_C1FlexGrid_System_Windows_Controls_Border_C1_WPF_FlexGrid_CellRange_">CreateRowHeaderContent(C1FlexGrid, Border, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Provides content for the row header cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_ExcelCellFactory_CreateTopLeftContent_C1_WPF_FlexGrid_C1FlexGrid_System_Windows_Controls_Border_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.ExcelCellFactory.CreateTopLeftContent(C1.WPF.FlexGrid.C1FlexGrid,System.Windows.Controls.Border,C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.ExcelCellFactory.CreateTopLeftContent.html#C1_WPF_FlexGrid_ExcelCellFactory_CreateTopLeftContent_C1_WPF_FlexGrid_C1FlexGrid_System_Windows_Controls_Border_C1_WPF_FlexGrid_CellRange_">CreateTopLeftContent(C1FlexGrid, Border, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Provides content for the cells in the top left panel of the grid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_ExcelCellFactory_GetBorderThickness_C1_WPF_FlexGrid_C1FlexGrid_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.ExcelCellFactory.GetBorderThickness(C1.WPF.FlexGrid.C1FlexGrid,C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.ExcelCellFactory.GetBorderThickness.html#C1_WPF_FlexGrid_ExcelCellFactory_GetBorderThickness_C1_WPF_FlexGrid_C1FlexGrid_C1_WPF_FlexGrid_CellRange_">GetBorderThickness(C1FlexGrid, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.thickness">Thickness</a> value that represents the thickness of the cell borders.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
