# FarPoint.Web.Spread.TextCellType

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_TextCellType" data-uid="FarPoint.Web.Spread.TextCellType" class="text-break">TextCellType Class
</h1>
  <div class="markdown level0 summary"><p>Represents a text cell.</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">TextCellType</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="FarPoint.Web.Spread.ICellType.html">ICellType</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IFormatter.html">IFormatter</a></div>
    <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.Editor.IEditor.html">IEditor</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.ICSSClassSupport.html">ICSSClassSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IRenderer2.html">IRenderer2</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IEditorCSSClassSupport.html">IEditorCSSClassSupport</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.IExpandoSupport.html">IExpandoSupport</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_TextCellType_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TextCellType : BaseCellType, ICellType, IFormatter, ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, IEditor, ICSSClassSupport, IRenderer2, IEditorCSSClassSupport, ISerializeSupport2, ISerializeSupport, IExpandoSupport, IWrapableRenderer, IRenderer, IAcceptServerValidator</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TextCellType
    Inherits BaseCellType
    Implements ICellType, IFormatter, ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, IEditor, ICSSClassSupport, IRenderer2, IEditorCSSClassSupport, ISerializeSupport2, ISerializeSupport, IExpandoSupport, 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_TextCellType__ctor" data-uid="FarPoint.Web.Spread.TextCellType.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.-ctor.html#FarPoint_Web_Spread_TextCellType__ctor">TextCellType()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new text cell.</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_TextCellType_AllowServerValidators" data-uid="FarPoint.Web.Spread.TextCellType.AllowServerValidators">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.AllowServerValidators.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_AllowWrap" data-uid="FarPoint.Web.Spread.TextCellType.AllowWrap">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.AllowWrap.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_CellCssClass" data-uid="FarPoint.Web.Spread.TextCellType.CellCssClass">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.CellCssClass.html#FarPoint_Web_Spread_TextCellType_CellCssClass">CellCssClass</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or set the CSS class name for the cell which contains this cell type.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TextCellType_CssClass" data-uid="FarPoint.Web.Spread.TextCellType.CssClass">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.CssClass.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_EditorCssClass" data-uid="FarPoint.Web.Spread.TextCellType.EditorCssClass">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.EditorCssClass.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_ErrorMessage" data-uid="FarPoint.Web.Spread.TextCellType.ErrorMessage">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.ErrorMessage.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_ImeMode" data-uid="FarPoint.Web.Spread.TextCellType.ImeMode">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.ImeMode.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_MaxLength" data-uid="FarPoint.Web.Spread.TextCellType.MaxLength">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.MaxLength.html#FarPoint_Web_Spread_TextCellType_MaxLength">MaxLength</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum length of text in the cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TextCellType_Multiline" data-uid="FarPoint.Web.Spread.TextCellType.Multiline">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.Multiline.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_Password" data-uid="FarPoint.Web.Spread.TextCellType.Password">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.Password.html#FarPoint_Web_Spread_TextCellType_Password">Password</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the cell has a password.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TextCellType_ShowEditor" data-uid="FarPoint.Web.Spread.TextCellType.ShowEditor">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.ShowEditor.html#FarPoint_Web_Spread_TextCellType_ShowEditor">ShowEditor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the cell always displays the text box (editor control).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TextCellType_ShowEllipsis" data-uid="FarPoint.Web.Spread.TextCellType.ShowEllipsis">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.ShowEllipsis.html#FarPoint_Web_Spread_TextCellType_ShowEllipsis">ShowEllipsis</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to render ellipses (...) to indicate text overflow in the cell.</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_TextCellType_CreateContent_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_System_Object_System_Boolean_" data-uid="FarPoint.Web.Spread.TextCellType.CreateContent(System.Web.UI.WebControls.TableCell,FarPoint.Web.Spread.Appearance,System.Object,System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.CreateContent.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Web.Spread.TextCellType.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.Deserialize.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_Format_System_Object_" data-uid="FarPoint.Web.Spread.TextCellType.Format(System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.Format.html#FarPoint_Web_Spread_TextCellType_Format_System_Object_">Format(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Formats the text to a string of password characters if the Password property is true.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TextCellType_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.TextCellType.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.TextCellType.GetEditorControl.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_GetPreferredSize_System_Drawing_Graphics_System_Drawing_Size_FarPoint_Web_Spread_Appearance_System_Object_System_Single_System_Boolean_System_Boolean_" data-uid="FarPoint.Web.Spread.TextCellType.GetPreferredSize(System.Drawing.Graphics,System.Drawing.Size,FarPoint.Web.Spread.Appearance,System.Object,System.Single,System.Boolean,System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.GetPreferredSize.html#FarPoint_Web_Spread_TextCellType_GetPreferredSize_System_Drawing_Graphics_System_Drawing_Size_FarPoint_Web_Spread_Appearance_System_Object_System_Single_System_Boolean_System_Boolean_">GetPreferredSize(Graphics, Size, Appearance, object, float, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the preferred (maximum needed) size of the cell for the renderer control.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_TextCellType_PaintCell_FarPoint_PDF_PdfGraphics_System_Drawing_RectangleF_FarPoint_Web_Spread_Appearance_System_Object_System_Boolean_System_Boolean_System_Single_" data-uid="FarPoint.Web.Spread.TextCellType.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.TextCellType.PaintCell.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_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.TextCellType.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.TextCellType.PaintCell.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Web.Spread.TextCellType.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.Serialize.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_Serialize2_System_Xml_XmlTextWriter_" data-uid="FarPoint.Web.Spread.TextCellType.Serialize2(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.Serialize2.html#FarPoint_Web_Spread_TextCellType_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_TextCellType_ValidateEditorValue_System_Object_" data-uid="FarPoint.Web.Spread.TextCellType.ValidateEditorValue(System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.TextCellType.ValidateEditorValue.html#FarPoint_Web_Spread_TextCellType_ValidateEditorValue_System_Object_">ValidateEditorValue(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates the input value.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
