Get Started
Documentation

GetColumnWidth

GetColumnWidth() → { number }

Get columns width value

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oWidth = oWorksheet.GetRange("A1").GetColumnWidth();
oWorksheet.GetRange("A1").SetValue("Width: ");
oWorksheet.GetRange("B1").SetValue(oWidth);
builder.SaveFile("xlsx", "GetColumnWidth.xlsx");
builder.CloseFile();

Resulting document