Link Search Menu Expand Document

SSpread.ColWidthChange Event

Occurs when changing the width of a column with the mouse.

The following child objects are attached to the Event object.

Type Name Description
Number Col1 The leftmost column number of the changed column range
Number Col2 The rightmost column number of the changed column range

Example of usage

Function OnColWidthChange(e) {
    for (var c = e.Col1; c <= e.Col2; c++) {
        if (ColWidth(c) > 100) {
            ColWidth(c) = 100;
        }
    }
}

Related Item
ColWidth, UserResize, UserResizeCol property
RowHeightChange event