The cell elements are CheckBoxCellType, TextCellType, ButtonCellType, ComboBoxCellType, and HyperLinkCellType.
cell 标签就是 CheckBoxCellType, TextCellType, ButtonCellType, ComboBoxCellType, 或者 HyperLinkCellType。
Text cell type 没有属性或者子标签。
CheckBoxCellType 标签没有子标签。下表列出了 CheckBoxCellType 的属性。
Attribute | API Reference | Type |
caption | GC.Spread.Sheets.CellTypes.CheckBox.caption(value) | string |
isThreeState | GC.Spread.Sheets.CellTypes.CheckBox.isThreeState(value) | Boolean |
textAlign | GC.Spread.Sheets.CellTypes.CheckBox.textAlign(value) | GC.Spread.Sheets.CellTypes.CheckBoxTextAlign |
textFalse | GC.Spread.Sheets.CellTypes.CheckBox.textFalse(value) | string |
textIndeterminate | GC.Spread.Sheets.CellTypes.CheckBox.textIndeterminate(value) | string |
textTrue | GC.Spread.Sheets.CellTypes.CheckBox.textTrue(value) | string |
ButtonCellType 标签没有子标签。下表列出了所有 ButtonCellType 标签的属性:
Attribute | API Reference | Type |
buttonBackColor | GC.Spread.Sheets.CellTypes.Button.buttonBackColor(value) | string |
marginBottom | GC.Spread.Sheets.CellTypes.Button.marginBottom(value) | number |
marginLeft | GC.Spread.Sheets.CellTypes.Button.marginLeft(value) | number |
marginRight | GC.Spread.Sheets.CellTypes.Button.marginRight(value) | number |
marginTop | GC.Spread.Sheets.CellTypes.Button.marginTop(value) | number |
text | GC.Spread.Sheets.CellTypes.Button.text(value) | string |
ComboBoxCellType 有以下属性:
Attribute | API Reference | Type |
editorValueType | GC.Spread.Sheets.CellTypes.ComboBox.editorValueType(value) | GC.Spread.Sheets.CellTypes.EditorValueType |
ComboBoxCellType 有以下子元素
Child Element | API Reference | Count | Type |
item | GC.Spread.Sheets.CellTypes.items | any | item.value:string, item.text:string |
以下代码使用了 item 元素。
HTML
<column> <default-style> <combobox-cell-type EditorValueType="Value"> <item value="11" text="aa"></item> <item value="22" text="bb"></item> <item value="33" text="cc"></item> <item value="44" text="dd"></item> </combobox-cell-type> </default-style> </column>
HyperLinkCellType 元素没有子标签。以下列表列出了 HyperLinkCellType 元素的属性:
Attribute | API Reference | Type |
linkColor | GC.Spread.Sheets.CellTypes.HyperLink.linkColor(value) | string |
linkToolTip | GC.Spread.Sheets.CellTypes.HyperLink.linkToolTip(value) | string |
text | GC.Spread.Sheets.CellTypes.HyperLink.text(value) | number |
visitedLinkColor | GC.Spread.Sheets.CellTypes.HyperLink.visitedLinkColor(value) | number |