[]
Represents a combo box item.
Each item has a Value value and a Text text. The text is displayed in the combo box dropdown, while the value is stored in the underlying data model. Items are added to a ComboBoxCellType via Items.
public class ComboBoxCellItem
Public Class ComboBoxCellItem
ComboBoxCellItem item = new ComboBoxCellItem();
item.Value = "US";
item.Text = "United States";
ComboBoxCellType cellType = new ComboBoxCellType();
cellType.Items.Add(item);
worksheet.Range["A1"].CellType = cellType;
| Name | Description |
|---|---|
| ComboBoxCellItem() |
| Name | Description |
|---|---|
| Text | Gets or sets the text of the item. |
| Value | Gets or sets the value of the item. |