[]
        
(Showing Draft Content)

FarPoint.Web.Spread.DateTimeCellType.Format

Format Method

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.

Declaration
public override string Format(object obj)
Public Overrides Function Format(obj As Object) As String
Parameters
Type Name Description
object obj

Object in the data model from which to get formatting information

Returns
Type Description
string
Overrides
Implements
Exceptions
Type Condition
ArgumentException

Value cannot be converted to a DateTime object.

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.

Declaration
public override string Format(object obj, string FormatString, IFormatProvider provider)
Public Overrides Function Format(obj As Object, FormatString As String, provider As IFormatProvider) As String
Parameters
Type Name Description
object obj

Object in the data model from which to get formatting information

string FormatString

Format string built by the parser

IFormatProvider provider

IFormatProvider built by parser

Returns
Type Description
string

String representation

Overrides
Implements
Exceptions
Type Condition
ArgumentException

Value cannot be converted to a DateTime object.