[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.BuiltInNumberFormats.GetBuiltInFormatter

GetBuiltInFormatter Method

GetBuiltInFormatter(IWorkbook, int, CultureInfo)

Gets a built-in formatter string by the specified ID.

Declaration
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
Parameters
Type Name Description
IWorkbook workbook

The workook that defines the number format.

int numFmtId

An integer value indicates the number format ID.

CultureInfo culture
Returns
Type Description
IFormatter

A string value represents the built-in formatter.

Remarks

This function has better performance than using GrapeCity.Spreadsheet.NumberFormat.GetFormatterInternal(GrapeCity.Spreadsheet.NumberFormatStorage,System.Globalization.CultureInfo,GrapeCity.Spreadsheet.Localization.LanguagePackage).