var instance = new GC.Spread.Sheets.CellTypes.Base(); var returnValue; // Type: string returnValue = instance.format(value, format, formattedData, formattedData.content, formattedData.conditionalForeColor, context);
function format( value : Object, format : GeneralFormatter, formattedData : Object, (optional) formattedData.content : Array, (optional) formattedData.conditionalForeColor : string, context : Object ) : string;
Parameters
- value
- The object value to format.
- format
- The format.
- formattedData
- the formatted data.
- formattedData.content
- The formatted data array, each item is an object that has two properties type and value, And it may contain these types: 'number', 'text', 'fillingChar', 'placeholder', 'exponent', 'decimalSeparator', 'groupSeparator', 'numberPlaceholder', 'percent', 'permille' and 'currency'. For example: {type: 'number', value: '123'}.
- formattedData.conditionalForeColor
- The conditional foreground color.
- context
- The context associated with the cell type. See the Remarks for more information.
Return Value
Returns the formatted string.