SSpread.TypeComboBoxWidth Property
Set the width of the list in the combo box cell.
Only valid for cells with $CellTypeComboBox (combo box type) set in the CellT CellTypeype property. Before setting this property, use the Col and Row properties, and so on to specify what to do.
Specify the following values. The initial value is 0.
| Value | List Width | List display position |
|---|---|---|
| 0 | Same as cell width | - |
| 1 | Fit to the longest list item | Align to the right edge of the cell if the width of the cell is greater Align to the left edge of the cell if the list is wider |
| n ( value greater than 1 ) | n pixels | |
| -1 | Fit to the longest list item | Always align to the right edge of the cell |
| -n ( value less than -1 ) | n pixels |
This property is subject to property inheritance for combo box cells.
Notes on property inheritance of combo box type cells
Example of usage
Col = 3;
Row = 2;
CellType = $CellTypeComboBox;
TypeComboBoxList = "AAA\tBBB\tCCC";
TypeComboBoxWidth = 100;
BlockMode = $TRUE;
Col = 3;
Row = 3;
Col2 = 5;
Row2 = 5;
CellType = $CellTypeComboBox;
TypeComboBoxWidth = 1;
BlockMode = $FALSE;
Related Items
CellType, TypeComboBoxList properties