[]
        
(Showing Draft Content)

FarPoint.Web.Spread.DateTimeCellType

DateTimeCellType Class

Represents a date-time cell.

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

Constructors

Name Description
DateTimeCellType()

Creates a new date-time cell.

DateTimeCellType(DateTime, DateTime)

Creates a new date-time cell with the specified earliest and latest allowable dates and times.

DateTimeCellType(DateTime, DateTime, string)

Creates a new date-time cell with the specified earliest and latest allowable dates and the specified error message.

DateTimeCellType(string)

Creates a new date-time cell with the specified error message.

Properties

Name Description
AllowWrap

Overridden to always return false.

DateTimeFormat

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

DropDownControlStyleInfo

Gets style information for CalendarDropDownControl instances.

EditMode

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

ErrorMessage

Gets or sets the error message for the cell type.

FormatString

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

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.

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.

Format(object, string, IFormatProvider)

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.

GetDropDownButton(FpSpread)

Gets the drop-down button.

GetDropDownControl(FpSpread)

Returns a new CalendarDropDownControl instance that is a DropDown control.

GetEditorControl(string, TableCell, Appearance, Inset, object, bool)
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.