# FarPoint.Web.Spread.ComboBoxCellType

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_ComboBoxCellType" data-uid="FarPoint.Web.Spread.ComboBoxCellType" class="text-break">ComboBoxCellType Class
</h1>
  <div class="markdown level0 summary"><p>Represents a combo box 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">ComboBoxCellType</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.IAutoPostBack.html">IAutoPostBack</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IRenderer2.html">IRenderer2</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.IWrapableRenderer.html">IWrapableRenderer</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IRenderer.html">IRenderer</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_ComboBoxCellType_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ComboBoxCellType : BaseCellType, ICellType, IFormatter, ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, IEditor, ICSSClassSupport, IAutoPostBack, IRenderer2, ISerializeSupport2, ISerializeSupport, IWrapableRenderer, IRenderer</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ComboBoxCellType
    Inherits BaseCellType
    Implements ICellType, IFormatter, ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, IEditor, ICSSClassSupport, IAutoPostBack, IRenderer2, ISerializeSupport2, ISerializeSupport, IWrapableRenderer, IRenderer</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_ComboBoxCellType__ctor" data-uid="FarPoint.Web.Spread.ComboBoxCellType.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.-ctor.html#FarPoint_Web_Spread_ComboBoxCellType__ctor">ComboBoxCellType()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new combo box.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType__ctor_System_String___" data-uid="FarPoint.Web.Spread.ComboBoxCellType.#ctor(System.String[])">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.-ctor.html#FarPoint_Web_Spread_ComboBoxCellType__ctor_System_String___">ComboBoxCellType(string[])</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new combo box cell with the specified items in the combo box list.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType__ctor_System_String___System_String___" data-uid="FarPoint.Web.Spread.ComboBoxCellType.#ctor(System.String[],System.String[])">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.-ctor.html#FarPoint_Web_Spread_ComboBoxCellType__ctor_System_String___System_String___">ComboBoxCellType(string[], string[])</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new combo box cell with the specified items in the combo box list and values.</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_ComboBoxCellType_AllowWrap" data-uid="FarPoint.Web.Spread.ComboBoxCellType.AllowWrap">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.AllowWrap.html#FarPoint_Web_Spread_ComboBoxCellType_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_ComboBoxCellType_AutoPostBack" data-uid="FarPoint.Web.Spread.ComboBoxCellType.AutoPostBack">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.AutoPostBack.html#FarPoint_Web_Spread_ComboBoxCellType_AutoPostBack">AutoPostBack</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the control should automatically post back when clicked.
This property only has an effect when the ShowButton property is true.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_BackColor" data-uid="FarPoint.Web.Spread.ComboBoxCellType.BackColor">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.BackColor.html#FarPoint_Web_Spread_ComboBoxCellType_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background color of the cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_CssClass" data-uid="FarPoint.Web.Spread.ComboBoxCellType.CssClass">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.CssClass.html#FarPoint_Web_Spread_ComboBoxCellType_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_ComboBoxCellType_DataMember" data-uid="FarPoint.Web.Spread.ComboBoxCellType.DataMember">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.DataMember.html#FarPoint_Web_Spread_ComboBoxCellType_DataMember">DataMember</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the data member that populates the combo box.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_DataSource" data-uid="FarPoint.Web.Spread.ComboBoxCellType.DataSource">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.DataSource.html#FarPoint_Web_Spread_ComboBoxCellType_DataSource">DataSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the data source for the combo box.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_DataSourceID" data-uid="FarPoint.Web.Spread.ComboBoxCellType.DataSourceID">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.DataSourceID.html#FarPoint_Web_Spread_ComboBoxCellType_DataSourceID">DataSourceID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the unique identifier for the data source for the combo box.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_DataTextField" data-uid="FarPoint.Web.Spread.ComboBoxCellType.DataTextField">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.DataTextField.html#FarPoint_Web_Spread_ComboBoxCellType_DataTextField">DataTextField</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text field of the combo box.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_DataValueField" data-uid="FarPoint.Web.Spread.ComboBoxCellType.DataValueField">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.DataValueField.html#FarPoint_Web_Spread_ComboBoxCellType_DataValueField">DataValueField</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value field of the combo box.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_EditorClientScriptUrl" data-uid="FarPoint.Web.Spread.ComboBoxCellType.EditorClientScriptUrl">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.EditorClientScriptUrl.html#FarPoint_Web_Spread_ComboBoxCellType_EditorClientScriptUrl">EditorClientScriptUrl</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the URL of the client script file for the editor,
if the editor supports client-side scripting.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_Items" data-uid="FarPoint.Web.Spread.ComboBoxCellType.Items">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.Items.html#FarPoint_Web_Spread_ComboBoxCellType_Items">Items</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a string array of items for the combo box list.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_ListItems" data-uid="FarPoint.Web.Spread.ComboBoxCellType.ListItems">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.ListItems.html#FarPoint_Web_Spread_ComboBoxCellType_ListItems">ListItems</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the list items for the combo box list.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_OnClientChanged" data-uid="FarPoint.Web.Spread.ComboBoxCellType.OnClientChanged">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.OnClientChanged.html#FarPoint_Web_Spread_ComboBoxCellType_OnClientChanged">OnClientChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the OnClientChanged event settings of the cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_ShowButton" data-uid="FarPoint.Web.Spread.ComboBoxCellType.ShowButton">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.ShowButton.html#FarPoint_Web_Spread_ComboBoxCellType_ShowButton">ShowButton</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the combo box should be displayed all the time.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_ShowEllipsis" data-uid="FarPoint.Web.Spread.ComboBoxCellType.ShowEllipsis">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.ShowEllipsis.html#FarPoint_Web_Spread_ComboBoxCellType_ShowEllipsis">ShowEllipsis</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to render ellipsis (...) to indicate text overflow in the cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_UseValue" data-uid="FarPoint.Web.Spread.ComboBoxCellType.UseValue">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.UseValue.html#FarPoint_Web_Spread_ComboBoxCellType_UseValue">UseValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to use the value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_Values" data-uid="FarPoint.Web.Spread.ComboBoxCellType.Values">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.Values.html#FarPoint_Web_Spread_ComboBoxCellType_Values">Values</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a string array of values for the combo box list.</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_ComboBoxCellType_CreateContent_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_System_Object_System_Boolean_" data-uid="FarPoint.Web.Spread.ComboBoxCellType.CreateContent(System.Web.UI.WebControls.TableCell,FarPoint.Web.Spread.Appearance,System.Object,System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.CreateContent.html#FarPoint_Web_Spread_ComboBoxCellType_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_ComboBoxCellType_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Web.Spread.ComboBoxCellType.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.Deserialize.html#FarPoint_Web_Spread_ComboBoxCellType_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_ComboBoxCellType_Format_System_Object_" data-uid="FarPoint.Web.Spread.ComboBoxCellType.Format(System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.Format.html#FarPoint_Web_Spread_ComboBoxCellType_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_ComboBoxCellType_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.ComboBoxCellType.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.ComboBoxCellType.GetEditorControl.html#FarPoint_Web_Spread_ComboBoxCellType_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_ComboBoxCellType_GetPreferredSize_System_Drawing_Graphics_System_Drawing_Size_FarPoint_Web_Spread_Appearance_System_Object_System_Single_System_Boolean_System_Boolean_" data-uid="FarPoint.Web.Spread.ComboBoxCellType.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.ComboBoxCellType.GetPreferredSize.html#FarPoint_Web_Spread_ComboBoxCellType_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_ComboBoxCellType_GetValueFromText_System_String_" data-uid="FarPoint.Web.Spread.ComboBoxCellType.GetValueFromText(System.String)">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.GetValueFromText.html#FarPoint_Web_Spread_ComboBoxCellType_GetValueFromText_System_String_">GetValueFromText(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value from the specified text.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_ComboBoxCellType_PaintCell_FarPoint_PDF_PdfGraphics_System_Drawing_RectangleF_FarPoint_Web_Spread_Appearance_System_Object_System_Boolean_System_Boolean_System_Single_" data-uid="FarPoint.Web.Spread.ComboBoxCellType.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.ComboBoxCellType.PaintCell.html#FarPoint_Web_Spread_ComboBoxCellType_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_ComboBoxCellType_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.ComboBoxCellType.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.ComboBoxCellType.PaintCell.html#FarPoint_Web_Spread_ComboBoxCellType_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_ComboBoxCellType_Parse_System_String_" data-uid="FarPoint.Web.Spread.ComboBoxCellType.Parse(System.String)">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.Parse.html#FarPoint_Web_Spread_ComboBoxCellType_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_ComboBoxCellType_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Web.Spread.ComboBoxCellType.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.Serialize.html#FarPoint_Web_Spread_ComboBoxCellType_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_ComboBoxCellType_Serialize2_System_Xml_XmlTextWriter_" data-uid="FarPoint.Web.Spread.ComboBoxCellType.Serialize2(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Web.Spread.ComboBoxCellType.Serialize2.html#FarPoint_Web_Spread_ComboBoxCellType_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>
    </tbody>
  </table>

</div>
