Spread for ASP.NET 8.0 Product Documentation
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 obj As Object, _
   ByVal FormatString As String, _
   ByVal provider As IFormatProvider _
) As String
'Usage
 
Dim instance As DoubleCellType
Dim obj As Object
Dim FormatString As String
Dim provider As IFormatProvider
Dim value As String
 
value = instance.Format(obj, FormatString, provider)
public override string Format( 
   object obj,
   string FormatString,
   IFormatProvider provider
)

Parameters

obj
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
System.ArgumentExceptionValue cannot be converted to a DateTime object.
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

DoubleCellType Class
DoubleCellType Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.