[]
        
(Showing Draft Content)

FarPoint.Web.Spread.ComboBoxCellType

ComboBoxCellType Class

Represents a combo box cell.

Inheritance
ComboBoxCellType
Namespace: FarPoint.Web.Spread
Assembly: FarPoint.Web.Spread.dll
Syntax
public class ComboBoxCellType : BaseCellType, ICellType, IFormatter, ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, IEditor, ICSSClassSupport, IAutoPostBack, IRenderer2, ISerializeSupport2, ISerializeSupport, IWrapableRenderer, IRenderer
Public Class ComboBoxCellType
    Inherits BaseCellType
    Implements ICellType, IFormatter, ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, IEditor, ICSSClassSupport, IAutoPostBack, IRenderer2, ISerializeSupport2, ISerializeSupport, IWrapableRenderer, IRenderer

Constructors

Name Description
ComboBoxCellType()

Creates a new combo box.

ComboBoxCellType(string[])

Creates a new combo box cell with the specified items in the combo box list.

ComboBoxCellType(string[], string[])

Creates a new combo box cell with the specified items in the combo box list and values.

Properties

Name Description
AllowWrap

Gets or sets whether the cell allows text to wrap to multiple lines. Wrapping only occurs on word breaks.

AutoPostBack

Gets or sets whether the control should automatically post back when clicked. This property only has an effect when the ShowButton property is true.

BackColor

Gets or sets the background color of the cell.

CssClass

Gets or sets the CSS class name.

DataMember

Gets or sets the name of the data member that populates the combo box.

DataSource

Gets or sets the data source for the combo box.

DataSourceID

Gets or sets the unique identifier for the data source for the combo box.

DataTextField

Gets or sets the text field of the combo box.

DataValueField

Gets or sets the value field of the combo box.

EditorClientScriptUrl

Gets the URL of the client script file for the editor, if the editor supports client-side scripting.

Items

Gets or sets a string array of items for the combo box list.

ListItems

Gets or sets the list items for the combo box list.

OnClientChanged

Gets or sets the OnClientChanged event settings of the cell.

ShowButton

Gets or sets whether the combo box should be displayed all the time.

ShowEllipsis

Gets or sets whether to render ellipsis (...) to indicate text overflow in the cell.

UseValue

Gets or sets whether to use the value.

Values

Gets or sets a string array of values for the combo box list.

Methods

Name Description
CreateContent(TableCell, Appearance, object, bool)

Internal Use Only.

Deserialize(XmlNodeReader)

Loads the cell type from XML.

Format(object)

When deriving a cell type based on this type, override this
to change what gets passed back and formatted as a string into the cell on the sheet from the object in the data model.

GetEditorControl(string, TableCell, Appearance, Inset, object, bool)

Gets the control used to edit the cell.

GetPreferredSize(Graphics, Size, Appearance, object, float, bool, bool)

Gets the preferred (maximum needed) size of the cell for the renderer control.

GetValueFromText(string)

Gets the value from the specified text.

PaintCell(PdfGraphics, RectangleF, Appearance, object, bool, bool, float)

Gets a control and prints the cell to PDF based on the specified appearance and selection.

PaintCell(string, TableCell, Appearance, Inset, object, bool)

Gets a control and renders it in the cell based on the specified appearance, margin, and value.

Parse(string)

When deriving a cell type based on this type, override this
to change what gets parsed from the cell on the sheet and put in the data model.

Serialize(XmlTextWriter)

Saves the cell type to XML.

Serialize2(XmlTextWriter)

Saves the cell type to XML using short names.