[]
        
(Showing Draft Content)

FarPoint.Web.Spread.PercentCellType.Format

Format Method

Format(object)

Determines 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 value)
Public Overrides Function Format(value As Object) As String
Parameters
Type Name Description
object value

Object in the data model from which to get formatting information

Returns
Type Description
string
Overrides
Implements

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 value, string FormatString, IFormatProvider provider)
Public Overrides Function Format(value As Object, FormatString As String, provider As IFormatProvider) As String
Parameters
Type Name Description
object value

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.