# GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase" class="text-break">CellTypeBase Class
</h1>
  <div class="markdown level0 summary"><p>Represents a base class for any cell type.</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"><span class="xref">CellTypeBase</span></div>
      <div class="level2"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.UniversalCellType.html">UniversalCellType</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.ICellType.html">ICellType</a></div>
    <div><a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.ICloneable-1.html">ICloneable</a>&lt;<a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.ICellType.html">ICellType</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.html">GrapeCity.Wpf.SpreadSheet.CellType</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class CellTypeBase : ICellType, ICloneable&lt;ICellType&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class CellTypeBase
    Implements ICellType, ICloneable(Of ICellType)</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="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase__ctor">CellTypeBase()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_CancelCommand" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.CancelCommand">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.CancelCommand.html">CancelCommand</a>
        </td>
        <td class="markdown level1 summary"><p>Editing is stopped but the old value is kept</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_UniqueKey" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.UniqueKey">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.UniqueKey.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_UniqueKey">UniqueKey</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the unique <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a> key of the cell type.</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="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_Clone" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.Clone">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.Clone.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Clones this cell type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_ContainsFocus_System_Windows_FrameworkElement_System_Windows_IInputElement_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.ContainsFocus(System.Windows.FrameworkElement,System.Windows.IInputElement)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.ContainsFocus.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_ContainsFocus_System_Windows_FrameworkElement_System_Windows_IInputElement_">ContainsFocus(FrameworkElement, IInputElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a boolean value indicates whether the focus scope of <code class="paramref">element</code> belong to <code class="paramref">editor</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_Export_System_Xml_XmlWriter_GrapeCity_Spreadsheet_IO_OpenXml_ExportContext_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.Export(System.Xml.XmlWriter,GrapeCity.Spreadsheet.IO.OpenXml.ExportContext)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.Export.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_Export_System_Xml_XmlWriter_GrapeCity_Spreadsheet_IO_OpenXml_ExportContext_">Export(XmlWriter, ExportContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Exports the cell type data.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_GetEditingCommand_GrapeCity_Spreadsheet_Worksheet_System_Int32_System_Int32_System_Boolean_GrapeCity_Wpf_SpreadSheet_CellData_System_Windows_FrameworkElement_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.GetEditingCommand(GrapeCity.Spreadsheet.Worksheet,System.Int32,System.Int32,System.Boolean,GrapeCity.Wpf.SpreadSheet.CellData,System.Windows.FrameworkElement)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.GetEditingCommand.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_GetEditingCommand_GrapeCity_Spreadsheet_Worksheet_System_Int32_System_Int32_System_Boolean_GrapeCity_Wpf_SpreadSheet_CellData_System_Windows_FrameworkElement_">GetEditingCommand(Worksheet, int, int, bool, CellData, FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the editing command which will be executed after stopped editing.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_GetEditingElement_GrapeCity_Wpf_SpreadSheet_PaintingContext_System_Int32_System_Int32_GrapeCity_Wpf_SpreadSheet_CellData_System_EventArgs_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.GetEditingElement(GrapeCity.Wpf.SpreadSheet.PaintingContext,System.Int32,System.Int32,GrapeCity.Wpf.SpreadSheet.CellData,System.EventArgs)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.GetEditingElement.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_GetEditingElement_GrapeCity_Wpf_SpreadSheet_PaintingContext_System_Int32_System_Int32_GrapeCity_Wpf_SpreadSheet_CellData_System_EventArgs_">GetEditingElement(PaintingContext, int, int, CellData, EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the editing element of the specified cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_GetEditingValue_GrapeCity_Spreadsheet_Worksheet_System_Int32_System_Int32_System_Windows_FrameworkElement_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.GetEditingValue(GrapeCity.Spreadsheet.Worksheet,System.Int32,System.Int32,System.Windows.FrameworkElement)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.GetEditingValue.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_GetEditingValue_GrapeCity_Spreadsheet_Worksheet_System_Int32_System_Int32_System_Windows_FrameworkElement_">GetEditingValue(Worksheet, int, int, FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the editing object which represents the edited value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_GetFormatter_System_Globalization_CultureInfo_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.GetFormatter(System.Globalization.CultureInfo)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.GetFormatter.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_GetFormatter_System_Globalization_CultureInfo_">GetFormatter(CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.IFormatter.html">IFormatter</a> object which is used to format cell data as text.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_Import_System_Xml_XmlReader_GrapeCity_Spreadsheet_IO_OpenXml_ImportContext_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.Import(System.Xml.XmlReader,GrapeCity.Spreadsheet.IO.OpenXml.ImportContext)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.Import.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_Import_System_Xml_XmlReader_GrapeCity_Spreadsheet_IO_OpenXml_ImportContext_">Import(XmlReader, ImportContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Imports the cell type data.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_IsFormulaEditorSupported" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.IsFormulaEditorSupported">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.IsFormulaEditorSupported.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_IsFormulaEditorSupported">IsFormulaEditorSupported()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a boolean value indicates that the editor support editing formula.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_IsRequiredExport" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.IsRequiredExport">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.IsRequiredExport.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_IsRequiredExport">IsRequiredExport()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the cell type requires to export its data to XLSX format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_PaintBackground_GrapeCity_Wpf_SpreadSheet_PaintingContext_System_Int32_System_Int32_GrapeCity_Wpf_SpreadSheet_CellData_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.PaintBackground(GrapeCity.Wpf.SpreadSheet.PaintingContext,System.Int32,System.Int32,GrapeCity.Wpf.SpreadSheet.CellData)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.PaintBackground.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_PaintBackground_GrapeCity_Wpf_SpreadSheet_PaintingContext_System_Int32_System_Int32_GrapeCity_Wpf_SpreadSheet_CellData_">PaintBackground(PaintingContext, int, int, CellData)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the background of a cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_PaintContent_GrapeCity_Wpf_SpreadSheet_PaintingContext_System_Int32_System_Int32_GrapeCity_Wpf_SpreadSheet_CellData_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.PaintContent(GrapeCity.Wpf.SpreadSheet.PaintingContext,System.Int32,System.Int32,GrapeCity.Wpf.SpreadSheet.CellData)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.PaintContent.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_PaintContent_GrapeCity_Wpf_SpreadSheet_PaintingContext_System_Int32_System_Int32_GrapeCity_Wpf_SpreadSheet_CellData_">PaintContent(PaintingContext, int, int, CellData)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the content of a cell.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_Parse_System_String_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.Parse(System.String)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.Parse.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_Parse_System_String_">Parse(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Parses the specified string to the data type of the cell type and returns it as an object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_ProcessReversedKey_System_Windows_Input_KeyEventArgs_System_Windows_IInputElement_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.ProcessReversedKey(System.Windows.Input.KeyEventArgs,System.Windows.IInputElement)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.ProcessReversedKey.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_ProcessReversedKey_System_Windows_Input_KeyEventArgs_System_Windows_IInputElement_">ProcessReversedKey(KeyEventArgs, IInputElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Return a command for the special key.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_SetEditingText_System_Windows_FrameworkElement_System_String_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.SetEditingText(System.Windows.FrameworkElement,System.String)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.SetEditingText.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_SetEditingText_System_Windows_FrameworkElement_System_String_">SetEditingText(FrameworkElement, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Set text to the editing control</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_ToNumberFormat" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.ToNumberFormat">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.CellTypeBase.ToNumberFormat.html#GrapeCity_Wpf_SpreadSheet_CellType_CellTypeBase_ToNumberFormat">ToNumberFormat()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the corresponding <a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.NumberFormat.html">NumberFormat</a> value of this cell type.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
