[]
        
(Showing Draft Content)

FarPoint.Web.Spread.CurrencyCellType

CurrencyCellType Class

Represents a currency cell.

Namespace: FarPoint.Web.Spread
Assembly: FarPoint.Web.Spread.dll
Syntax
public class CurrencyCellType : BaseDropDownCellType, ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, ISerializeSupport2, IParseFormatSupport, ICSSClassSupport, IEditFormatter, IEditorCSSClassSupport, IDateCellType, ICellType, IEditor, IWrapableRenderer, IRenderer, IAcceptServerValidator, ISerializeSupport, IExpandoSupport, IEnhancedFormatter, IFormatter
Public Class CurrencyCellType
    Inherits BaseDropDownCellType
    Implements ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, ISerializeSupport2, IParseFormatSupport, ICSSClassSupport, IEditFormatter, IEditorCSSClassSupport, IDateCellType, ICellType, IEditor, IWrapableRenderer, IRenderer, IAcceptServerValidator, ISerializeSupport, IExpandoSupport, IEnhancedFormatter, IFormatter

Constructors

Name Description
CurrencyCellType()

Creates a new currency cell.

CurrencyCellType(decimal, decimal)

Creates a new currency cell with the specified minimum and maximum values.

CurrencyCellType(decimal, decimal, string)

Creates a new currency cell with the specified minimum and maximum values and the specified error message.

CurrencyCellType(string)

Creates a new currency cell with the specified message to display.

Properties

Name Description
AllowWrap

Overridden to always return false.

EditMode

Gets the format setting of a cell type in edit mode.

FixedPoint

Gets or sets whether to display placeholder zeros in the decimal portion of the number for a fixed-point numeric display.

MaximumValue

Gets or sets the maximum value.

MinimumValue

Gets or sets the minimum value.

Multiline

Gets or sets whether the cell allows multiple lines; overridden to always return false.

NumberFormat

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

ShowPopupButton

Gets or sets whether the editor supports showing a pop-up control.

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.

GetDropDownControl(FpSpread)

Returns the specified DropDown control that is implemented by the sub class.

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

Gets the control used to edit the cell.

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.

ValidateEditorValue(object)

Validates the input value.