[]
Gets a built-in formatter string by the specified ID.
public static IFormatter GetBuiltInFormatter(IWorkbook workbook, int numFmtId, CultureInfo culture = null)
Public Shared Function GetBuiltInFormatter(workbook As IWorkbook, numFmtId As Integer, Optional culture As CultureInfo = Nothing) As IFormatter
Type | Name | Description |
---|---|---|
IWorkbook | workbook | The workook that defines the number format. |
int | numFmtId | An integer value indicates the number format ID. |
CultureInfo | culture |
Type | Description |
---|---|
IFormatter | A string value represents the built-in formatter. |
This function has better performance than using GrapeCity.Spreadsheet.NumberFormat.GetFormatterInternal(GrapeCity.Spreadsheet.NumberFormatStorage,System.Globalization.CultureInfo,GrapeCity.Spreadsheet.Localization.LanguagePackage).