Spread Windows Forms 12.0 Product Documentation
GetBuiltInFormatter Method


GrapeCity.Spreadsheet Assembly > GrapeCity.Spreadsheet Namespace > BuiltInNumberFormats Class : GetBuiltInFormatter Method
The workook that defines the number format.
Gets a built-in formatter string by the specified ID.
Syntax
'Declaration
 
Public Shared Function GetBuiltInFormatter( _
   ByVal workbook As IWorkbook, _
   ByVal numFmtId As Integer, _
   Optional ByVal culture As CultureInfo _
) As IFormatter
'Usage
 
Dim workbook As IWorkbook
Dim numFmtId As Integer
Dim culture As CultureInfo
Dim value As IFormatter
 
value = BuiltInNumberFormats.GetBuiltInFormatter(workbook, numFmtId, culture)
public static IFormatter GetBuiltInFormatter( 
   IWorkbook workbook,
   int numFmtId,
   CultureInfo culture
)

Parameters

workbook
The workook that defines the number format.
numFmtId
culture

Return Value

A System.String value represents the built-in formatter.
Remarks
This function has better performance than using NumberFormat.GetFormatterInternal.
See Also

Reference

BuiltInNumberFormats Class
BuiltInNumberFormats Members