[]
        
(Showing Draft Content)

FarPoint.Web.Spread.ListBoxCellType

ListBoxCellType Class

Represents a list box cell.

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

Constructors

Name Description
ListBoxCellType()

Creates a new list box cell.

ListBoxCellType(string[])

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

ListBoxCellType(string[], string[])

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

Properties

Name Description
CssClass

Gets or sets the CSS class name.

Items

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

ListItems

Gets or sets the list of items.

Rows

Gets or sets the number of items to display when when editing the list.

SelectedBackColor

Gets or sets the background color for the selected item in the list.

SelectedForeColor

Gets or sets the text color for the selected item in the list.

Values

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

Methods

Name Description
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.

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.