Formats the selected range of cells from the current sheet as a table (with the first row formatted as a header).
Name | Type | Description |
sRange | string | The range of cells from the current sheet which will be formatted as a table. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); oWorksheet.FormatAsTable("A1:E10"); builder.SaveFile("xlsx", "FormatAsTable.xlsx"); builder.CloseFile();