Spread 8.0 Documentation
TypeComboBoxString Property
Support Options
ActiveX Reference > ActiveX Properties > TypeComboBoxString Property

Glossary Item Box

TypeComboBoxString Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns a string in a combo box list. This property is available at run time only.

Syntax

C++

CString CSpreadSheet::GetTypeComboBoxString( );
void CSpreadSheet::SetTypeComboBoxString(LPCTSTR value);

Visual Basic

[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:
  • The TypeComboBoxString property does not have an effect unless the CellType property is set to 8 (Combo Box) for the specified cell or cells.
  • The TypeComboBoxString property will not return the correct value or have an effect if the fpCombo control is used in a combo box cell in a sheet.

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

Copyright © GrapeCity, inc. All rights reserved.