Spread for ASP.NET 12 Product Documentation
Format(Object,String,IFormatProvider) Method


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PercentCellType Class > Format Method : Format(Object,String,IFormatProvider) Method
Object in the data model from which to get formatting information
Format string built by the parser
IFormatProvider built by parser
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.
Syntax
'Declaration
 
Public Overloads Overrides Function Format( _
   ByVal value As Object, _
   ByVal FormatString As String, _
   ByVal provider As IFormatProvider _
) As String
'Usage
 
Dim instance As PercentCellType
Dim value As Object
Dim FormatString As String
Dim provider As IFormatProvider
Dim value As String
 
value = instance.Format(value, FormatString, provider)
public override string Format( 
   object value,
   string FormatString,
   IFormatProvider provider
)

Parameters

value
Object in the data model from which to get formatting information
FormatString
Format string built by the parser
provider
IFormatProvider built by parser

Return Value

String representation
Exceptions
ExceptionDescription
Value cannot be converted to a DateTime object.
See Also

Reference

PercentCellType Class
PercentCellType Members
Overload List