Returns a class formatted according to the instructions contained in the format expression.
Name | Type | Default | Description |
expression | string | Any valid expression. |
|
format | string | null | A valid named or user-defined format expression. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFormat = Api.Format("123456", ["$#,##0"]); oWorksheet.GetRange("A1").SetValue(oFormat); builder.SaveFile("xlsx", "Format.xlsx"); builder.CloseFile();