Spread for ASP.NET 7.0 Product Documentation
Format Method
See Also  Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Renderer Namespace > IFormatter Interface : Format Method


o
Object to format

Glossary Item Box

Formats the object as a string.

Syntax

Visual Basic (Declaration) 
Function Format( _
   ByVal o As Object _
) As String
Visual Basic (Usage)Copy Code
Dim instance As IFormatter
Dim o As Object
Dim value As String
 
value = instance.Format(o)
C# 
string Format( 
   object o
)

Parameters

o
Object to format

Return Value

Formatted string to put in the cell on the sheet

Remarks

The data model for a sheet only stores the raw unformatted data. Each time the data needs to be painted, the formatter must be called to transform the data from its raw unformatted form to its displayed form. The Format method is called whenever a cell needs to render, in which case a string representation of the data is needed to draw in the cell.

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.