Sets the specified font family as the font name for the current cell range.
Name | Type | Description |
sName | string | The font family name used for the current cell range. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); oWorksheet.GetRange("A2").SetValue("2"); var oRange = oWorksheet.GetRange("A1:D5"); oRange.SetFontName("Arial"); builder.SaveFile("xlsx", "SetFontName.xlsx"); builder.CloseFile();