# FarPoint.Web.Spread.GeneralCellType

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_GeneralCellType" data-uid="FarPoint.Web.Spread.GeneralCellType" class="text-break">GeneralCellType Class
</h1>
  <div class="markdown level0 summary"><p>Represents a general cell that can be used for text or numbers.D:\Projects\SpreadNetJ\Spread.NET\WebForms\Projects\Spread\Chart\</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="FarPoint.Web.Spread.BaseCellType.html">BaseCellType</a></div>
    <div class="level2"><span class="xref">GeneralCellType</span></div>
      <div class="level3"><a class="xref" href="FarPoint.Web.Spread.BaseDropDownCellType.html">BaseDropDownCellType</a></div>
      <div class="level3"><a class="xref" href="FarPoint.Web.Spread.EmptyCellType.html">EmptyCellType</a></div>
      <div class="level3"><a class="xref" href="FarPoint.Web.Spread.RegExpCellType.html">RegExpCellType</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IEnhancedRenderer.html">IEnhancedRenderer</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IEnhancedPdfRenderer.html">IEnhancedPdfRenderer</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IPdfSupport.html">IPdfSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Editor.IEditor3.html">IEditor3</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.ISerializeSupport2.html">ISerializeSupport2</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.ISerializeSupport.html">ISerializeSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.IParseFormatSupport.html">IParseFormatSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.ICSSClassSupport.html">ICSSClassSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Editor.IEditFormatter.html">IEditFormatter</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IEditorCSSClassSupport.html">IEditorCSSClassSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IDateCellType.html">IDateCellType</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.ICellType.html">ICellType</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Editor.IEditor.html">IEditor</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IEnhancedFormatter.html">IEnhancedFormatter</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IFormatter.html">IFormatter</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IWrapableRenderer.html">IWrapableRenderer</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IRenderer.html">IRenderer</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IAcceptServerValidator.html">IAcceptServerValidator</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Web.Spread.html">FarPoint.Web.Spread</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Web.Spread.dll</h6>
  <h5 id="FarPoint_Web_Spread_GeneralCellType_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class GeneralCellType : BaseCellType, ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, ISerializeSupport2, ISerializeSupport, IParseFormatSupport, ICSSClassSupport, IEditFormatter, IEditorCSSClassSupport, IDateCellType, ICellType, IEditor, IEnhancedFormatter, IFormatter, IWrapableRenderer, IRenderer, IAcceptServerValidator</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class GeneralCellType
    Inherits BaseCellType
    Implements ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, ISerializeSupport2, ISerializeSupport, IParseFormatSupport, ICSSClassSupport, IEditFormatter, IEditorCSSClassSupport, IDateCellType, ICellType, IEditor, IEnhancedFormatter, IFormatter, IWrapableRenderer, IRenderer, IAcceptServerValidator</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="FarPoint_Web_Spread_GeneralCellType__ctor" data-uid="FarPoint.Web.Spread.GeneralCellType.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.-ctor.html#FarPoint_Web_Spread_GeneralCellType__ctor">GeneralCellType()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new general cell.</p>
</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="FarPoint_Web_Spread_GeneralCellType_shortName" data-uid="FarPoint.Web.Spread.GeneralCellType.shortName">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.shortName.html">shortName</a>
        </td>
        <td class="markdown level1 summary"><p>Sets whether to save the cell type to XML using short names.</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="FarPoint_Web_Spread_GeneralCellType_AllowServerValidators" data-uid="FarPoint.Web.Spread.GeneralCellType.AllowServerValidators">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.AllowServerValidators.html#FarPoint_Web_Spread_GeneralCellType_AllowServerValidators">AllowServerValidators</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the cell allows validating data using custom validator controls on the server side.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_AllowWrap" data-uid="FarPoint.Web.Spread.GeneralCellType.AllowWrap">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.AllowWrap.html#FarPoint_Web_Spread_GeneralCellType_AllowWrap">AllowWrap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the cell allows text to wrap to multiple lines.
Wrapping only occurs on word breaks.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_CssClass" data-uid="FarPoint.Web.Spread.GeneralCellType.CssClass">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.CssClass.html#FarPoint_Web_Spread_GeneralCellType_CssClass">CssClass</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the CSS class name.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_DateTimeFormat" data-uid="FarPoint.Web.Spread.GeneralCellType.DateTimeFormat">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.DateTimeFormat.html#FarPoint_Web_Spread_GeneralCellType_DateTimeFormat">DateTimeFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a DateTimeFormatInfo that defines the format for displaying dates and times.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_EditorCssClass" data-uid="FarPoint.Web.Spread.GeneralCellType.EditorCssClass">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.EditorCssClass.html#FarPoint_Web_Spread_GeneralCellType_EditorCssClass">EditorCssClass</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the editor's CSS class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_ErrorMessage" data-uid="FarPoint.Web.Spread.GeneralCellType.ErrorMessage">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.ErrorMessage.html#FarPoint_Web_Spread_GeneralCellType_ErrorMessage">ErrorMessage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the error message for the cell type. This property is used by the
derived classes.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_FormatString" data-uid="FarPoint.Web.Spread.GeneralCellType.FormatString">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.FormatString.html#FarPoint_Web_Spread_GeneralCellType_FormatString">FormatString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format string used to format the value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_ImeMode" data-uid="FarPoint.Web.Spread.GeneralCellType.ImeMode">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.ImeMode.html#FarPoint_Web_Spread_GeneralCellType_ImeMode">ImeMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the state of an Input Method Editor (IME).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_IsDateFormat" data-uid="FarPoint.Web.Spread.GeneralCellType.IsDateFormat">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.IsDateFormat.html#FarPoint_Web_Spread_GeneralCellType_IsDateFormat">IsDateFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the format string being used is a date-time format string.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_Multiline" data-uid="FarPoint.Web.Spread.GeneralCellType.Multiline">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.Multiline.html#FarPoint_Web_Spread_GeneralCellType_Multiline">Multiline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the cell allows multiple lines of text.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_NegativeRed" data-uid="FarPoint.Web.Spread.GeneralCellType.NegativeRed">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.NegativeRed.html#FarPoint_Web_Spread_GeneralCellType_NegativeRed">NegativeRed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets if the red text color is used for negative values.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_NumberFormat" data-uid="FarPoint.Web.Spread.GeneralCellType.NumberFormat">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.NumberFormat.html#FarPoint_Web_Spread_GeneralCellType_NumberFormat">NumberFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a NumberFormatInfo which is used to format the numeric value, such as for currency.</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="FarPoint_Web_Spread_GeneralCellType_CreateContent_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_System_Object_System_Boolean_" data-uid="FarPoint.Web.Spread.GeneralCellType.CreateContent(System.Web.UI.WebControls.TableCell,FarPoint.Web.Spread.Appearance,System.Object,System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.CreateContent.html#FarPoint_Web_Spread_GeneralCellType_CreateContent_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_System_Object_System_Boolean_">CreateContent(TableCell, Appearance, object, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Internal Use Only.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Web.Spread.GeneralCellType.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.Deserialize.html#FarPoint_Web_Spread_GeneralCellType_Deserialize_System_Xml_XmlNodeReader_">Deserialize(XmlNodeReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the cell type from XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_Format_System_Object_" data-uid="FarPoint.Web.Spread.GeneralCellType.Format(System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.Format.html#FarPoint_Web_Spread_GeneralCellType_Format_System_Object_">Format(object)</a>
        </td>
        <td class="markdown level1 summary"><p>When deriving a cell type based on this type, override this<br>
to change what gets passed back and formatted as a string
into the cell on the sheet from the object in the data model.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_GetEditorControl_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_" data-uid="FarPoint.Web.Spread.GeneralCellType.GetEditorControl(System.String,System.Web.UI.WebControls.TableCell,FarPoint.Web.Spread.Appearance,FarPoint.Web.Spread.Inset,System.Object,System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.GetEditorControl.html#FarPoint_Web_Spread_GeneralCellType_GetEditorControl_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_">GetEditorControl(string, TableCell, Appearance, Inset, object, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the control used to edit the cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_GetParseFormat_System_Int32_System_Int32_System_String__System_IFormatProvider__" data-uid="FarPoint.Web.Spread.GeneralCellType.GetParseFormat(System.Int32,System.Int32,System.String@,System.IFormatProvider@)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.GetParseFormat.html#FarPoint_Web_Spread_GeneralCellType_GetParseFormat_System_Int32_System_Int32_System_String__System_IFormatProvider__">GetParseFormat(int, int, ref string, ref IFormatProvider)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the parse format string and IFormatProvider for formatting when the format string is not set.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_PaintCell_FarPoint_PDF_PdfGraphics_System_Drawing_RectangleF_FarPoint_Web_Spread_Appearance_System_Object_System_Boolean_System_Boolean_System_Single_" data-uid="FarPoint.Web.Spread.GeneralCellType.PaintCell(FarPoint.PDF.PdfGraphics,System.Drawing.RectangleF,FarPoint.Web.Spread.Appearance,System.Object,System.Boolean,System.Boolean,System.Single)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.PaintCell.html#FarPoint_Web_Spread_GeneralCellType_PaintCell_FarPoint_PDF_PdfGraphics_System_Drawing_RectangleF_FarPoint_Web_Spread_Appearance_System_Object_System_Boolean_System_Boolean_System_Single_">PaintCell(PdfGraphics, RectangleF, Appearance, object, bool, bool, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a control and prints the cell to PDF based on the specified appearance and selection.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_PaintCell_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_" data-uid="FarPoint.Web.Spread.GeneralCellType.PaintCell(System.String,System.Web.UI.WebControls.TableCell,FarPoint.Web.Spread.Appearance,FarPoint.Web.Spread.Inset,System.Object,System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.PaintCell.html#FarPoint_Web_Spread_GeneralCellType_PaintCell_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_">PaintCell(string, TableCell, Appearance, Inset, object, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a control and renders it in the cell based on the specified appearance, margin, and value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_Parse_System_String_" data-uid="FarPoint.Web.Spread.GeneralCellType.Parse(System.String)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.Parse.html#FarPoint_Web_Spread_GeneralCellType_Parse_System_String_">Parse(string)</a>
        </td>
        <td class="markdown level1 summary"><p>When deriving a cell type based on this type, override this<br>
to change what gets parsed from the cell on the sheet and put in the data model.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Web.Spread.GeneralCellType.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.Serialize.html#FarPoint_Web_Spread_GeneralCellType_Serialize_System_Xml_XmlTextWriter_">Serialize(XmlTextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the cell type to XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_Serialize2_System_Xml_XmlTextWriter_" data-uid="FarPoint.Web.Spread.GeneralCellType.Serialize2(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.Serialize2.html#FarPoint_Web_Spread_GeneralCellType_Serialize2_System_Xml_XmlTextWriter_">Serialize2(XmlTextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the cell type to XML using short names.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_SetParseFormat_System_Int32_System_Int32_System_String_System_IFormatProvider_" data-uid="FarPoint.Web.Spread.GeneralCellType.SetParseFormat(System.Int32,System.Int32,System.String,System.IFormatProvider)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.SetParseFormat.html#FarPoint_Web_Spread_GeneralCellType_SetParseFormat_System_Int32_System_Int32_System_String_System_IFormatProvider_">SetParseFormat(int, int, string, IFormatProvider)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the parse format string and IFormatProvider for formatting when the format string is not set.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_GeneralCellType_ValidateEditorValue_System_Object_" data-uid="FarPoint.Web.Spread.GeneralCellType.ValidateEditorValue(System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.GeneralCellType.ValidateEditorValue.html#FarPoint_Web_Spread_GeneralCellType_ValidateEditorValue_System_Object_">ValidateEditorValue(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates the given value.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
