v5.20192.624
|

WorkbookColumn Class

Represents the Workbook Object Model column definition.

Hierarchy

  • WorkbookColumn

Constructors

Properties

Constructors

constructor

Properties

autoWidth

autoWidth: boolean

Gets or sets a value indicating whether the column width is automatically adjusted to fit the content of its cells.

style

Gets or sets the column style.

The property defines the style for all cells in the column, and can be overridden by the specific cell styles.

visible

visible: boolean

Gets or sets the column visibility.

width

width: any

Gets or sets the width of the column in device-independent (1/96th inch) pixels or characters.

The numeric value defines the width in pixels. On import, the widths are always expressed in pixels.

The string value which is a number with the 'ch' suffix, for example '10ch', defines the width in characters. It has the same meaning as the column width defined through Excel UI. The width can be specified in characters for the export operations only.

If width is not specified, then the default width is applied.