Spread for ASP.NET 7.0 Product Documentation
Format(Object,String,IFormatProvider) Method
See Also  Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PercentCellType Class > Format Method : Format(Object,String,IFormatProvider) Method


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

Glossary Item Box

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

Visual Basic (Declaration) 
Public Overloads Overrides Function Format( _
   ByVal value As Object, _
   ByVal FormatString As String, _
   ByVal provider As IFormatProvider _
) As String
Visual Basic (Usage)Copy Code
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)
C# 
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
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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.