Link Search Menu Expand Document

SSpread.SelChange Event

Occurs when a cell block is selected.

The following child objects are attached to the Event object.

Type Name Description
Number BlockCol Leftmost column number of cell block
Number BlockRow Row number at the top of the cell block
Number BlockCol2 Rightmost column number of cell block
Number BlockRow2 Row number at the bottom of the cell block
Number CurCol Column number of the cell pointed to by the mouse pointer
Number CurRow Row number of the cell pointed to by the mouse pointer

An event occurs every time the selection is changed by mouse operation or Shift + arrow keys.

Example of usage

Function OnSelChange (e) {
    print (strf ("% 1st column to % 2nd column, ", e.BlockCol, e.BlockCol2));
    print (strf ("Selected from% 1st row to % 2nd row ", e.BlockRow, e.BlockRow2), "\ n");
    print (strf (" mouse pointer is at (% 1,% 2) " , e.CurCol, e.CurRow), "\ n");
}

Related Items
SelectBlockOptions property
BlockSelected event