Link Search Menu Expand Document

SSpread.TypeComboBoxClear Method

Explanation Removes all list items from the combo box cell.

Only valid for cells with $ CellTypeComboBox (combo box type) set in the CellType property. Use the TypeComboBoxRemoveItem method to remove individual list items
Call format TypeComboBoxClear(col, row)
Return value None
Arguments col Combo box cell column number
row Row number of combo box type cell
Exception None
Example of use
    Col = 1;
    Row = 1;
    CellType = $CellTypeComboBox;
    TypeComboBoxList = "Remove All \tItem 1\tItem 2\tItem 3\tItem 4\tItem 5";
    
    Function OnComboCloseUp(e) {
        if (e.SelChange == 0) {
            TypeComboBoxClear(e.Col, e.Row);
        } else if (e.SelChange > 0) {
            TypeComboBoxRemoveItem(e.Col, e.Row, e.SelChange);
        }
    }
    
    
Related item CellType property
TypeComboBoxRemoveItem method