Sets the font size to the characters of the current cell range.
Name | Type | Description |
nSize | number | The font size value measured in points. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); oWorksheet.GetRange("A2").SetValue("2"); var oRange = oWorksheet.GetRange("A1:D5"); oRange.SetFontSize(20); builder.SaveFile("xlsx", "SetFontSize.xlsx"); builder.CloseFile();