SetColumnWidth
function SetColumnWidth(nWidth: number = null): void
Description
Sets the width of all the columns in the current range. One unit of column width is equal to the width of one character in the Normal style. For proportional fonts, the width of the character 0 (zero) is used.
Parameters
- nWidth
number
null The width of the column divided by 7 pixels.
Returns
void
Try It
var oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetColumnWidth(20);