[]
        
(Showing Draft Content)

FarPoint.Web.Spread.GeneralCellType

GeneralCellType Class

Represents a general cell that can be used for text or numbers.D:\Projects\SpreadNetJ\Spread.NET\WebForms\Projects\Spread\Chart\

Namespace: FarPoint.Web.Spread
Assembly: FarPoint.Web.Spread.dll
Syntax
public class GeneralCellType : BaseCellType, ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, ISerializeSupport2, ISerializeSupport, IParseFormatSupport, ICSSClassSupport, IEditFormatter, IEditorCSSClassSupport, IDateCellType, ICellType, IEditor, IEnhancedFormatter, IFormatter, IWrapableRenderer, IRenderer, IAcceptServerValidator
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

Constructors

Name Description
GeneralCellType()

Creates a new general cell.

Fields

Name Description
shortName

Sets whether to save the cell type to XML using short names.

Properties

Name Description
AllowServerValidators

Gets or sets whether the cell allows validating data using custom validator controls on the server side.

AllowWrap

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

CssClass

Gets or sets the CSS class name.

DateTimeFormat

Gets or sets a DateTimeFormatInfo that defines the format for displaying dates and times.

EditorCssClass

Gets the editor's CSS class.

ErrorMessage

Gets or sets the error message for the cell type. This property is used by the derived classes.

FormatString

Gets or sets the format string used to format the value.

ImeMode

Gets or sets the state of an Input Method Editor (IME).

IsDateFormat

Gets or sets whether the format string being used is a date-time format string.

Multiline

Gets or sets whether the cell allows multiple lines of text.

NegativeRed

Gets or sets if the red text color is used for negative values.

NumberFormat

Gets or sets a NumberFormatInfo which is used to format the numeric value, such as for currency.

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.

GetParseFormat(int, int, ref string, ref IFormatProvider)

Gets the parse format string and IFormatProvider for formatting when the format string is not set.

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.

SetParseFormat(int, int, string, IFormatProvider)

Sets the parse format string and IFormatProvider for formatting when the format string is not set.

ValidateEditorValue(object)

Validates the given value.