spreadsheetGetColumnWidth

Returns the width of a column.

spreadsheetGetColumnWidth(spreadsheet, column [, returnWidthInPixels]) → returns numeric

Argument Reference

spreadsheet any
Required

The spreadsheet object.

column numeric
Required

Column number (1-based).

returnWidthInPixels boolean

true to return the width in pixels, false for points.
Values:
  • true
  • false

Compatibility

RustCFML:

Not supported on wasm32. Does not support returnWidthInPixels; returns the width in character units (0 if no width is set). Member form: getColumnWidth(column).

Examples
Sample code invoking the spreadsheetGetColumnWidth function

Set a width, then read it back.

wb = Spreadsheet("xlsx");
spreadsheetSetColumnWidth(wb, 2, 30);
writeDump(spreadsheetGetColumnWidth(wb, 2));

Expected Result: 30

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub