Spread.Sheets Documentation
format Method
GC.Spread.Sheets.CellTypes Namespace > Base class : format Method
The object value to format.
The format.
the formatted data.
Formats a value with the specified format to a string.
Syntax
var instance = new GC.Spread.Sheets.CellTypes.Base();
var returnValue; // Type: any
returnValue = instance.format(value, format, formattedData);
function format( 
   value : Object,
   format : GeneralFormatter,
   formattedData : Object
) : any;

Parameters

value
The object value to format.
format
The format.
formattedData
the formatted data.
Remarks

The context parameter can include the following items:

Item Type Description
context.sheet GC.Spread.Sheets.Sheet instance Indicates the current sheet.
context.row number The row index.
context.col number The column index.
context.sheetArea GC.Spread.Sheets.SheetArea The current sheet area.

 

See Also

Reference

Base class