TypeComboBoxString Property
Applies To
fpSpread control
Description
Sets or returns a string in a combo box list. This property is available at run time only.
Syntax
CString CSpreadSheet::GetTypeComboBoxString( );
void CSpreadSheet::SetTypeComboBoxString(LPCTSTR value);
[form.]fpSpread.TypeComboBoxString[ = text$]
Remarks
Use the TypeComboBoxString property to retrieve a string from a combo box list or to insert a new string into the list.
When you insert a new string, set the TypeComboBoxIndex property to indicate where to insert the string. Set the property to –1 to add the string to the end of the list. When returning an item from the list, set the TypeComboBoxIndex property to specify which item to return.
To use the TypeComboBoxString property, specify the sheet with which you want to work by setting the Sheet property. Then specify the cell or cells to which to apply the property, as described in Using Column and Row Properties.
Notes:
|
Spread Designer
Choose the Cell menu, the Cell Type menu, the Combo Box menu, and then the Settings tab, and then type text in the Text edit box and use the command buttons in the Combo Box List group box in the Cell Type Settings dialog box.
Data Type
String
See Also
CellType, Sheet, TypeComboBoxAutoSearch, TypeComboBoxCount, TypeComboBoxCurSel, TypeComboBoxEditable, TypeComboBoxIndex, TypeComboBoxList, TypeComboBoxMaxDrop, TypeComboBoxWidth, TypeMaxEditLen properties
TypeComboBoxClear, TypeComboBoxRemoveItem methods
DLL Correspondence
SSSetTypeComboBox function