可以参考下面代码进行设置:
- let Type = new GC.Spread.Sheets.CellTypes.ComboBox();
- let comboBoxItem = [
- { text: "1", value: "1" },
- { text: ",,逗号", value: ",,逗号" },
- { text: "''", value: "'''" },
- { text: "3", value: "3" }];
- Type.items(comboBoxItem);
- Type.editorValueType(GC.Spread.Sheets.CellTypes.EditorValueType.value);
- sheet.getCell(2, 2).cellType(Type);
复制代码 |