Page tree
Skip to end of metadata
Go to start of metadata

The cell elements are CheckBoxCellType, TextCellType, ButtonCellType, ComboBoxCellType, and HyperLinkCellType.

cell 标签就是 CheckBoxCellType, TextCellType, ButtonCellType, ComboBoxCellType, 或者 HyperLinkCellType。

Text cell type 没有属性或者子标签。

CheckBoxCellType  标签没有子标签。下表列出了 CheckBoxCellType 的属性。

AttributeAPI ReferenceType
captionGC.Spread.Sheets.CellTypes.CheckBox.caption(value)string
isThreeStateGC.Spread.Sheets.CellTypes.CheckBox.isThreeState(value)Boolean
textAlignGC.Spread.Sheets.CellTypes.CheckBox.textAlign(value)GC.Spread.Sheets.CellTypes.CheckBoxTextAlign
textFalseGC.Spread.Sheets.CellTypes.CheckBox.textFalse(value)string
textIndeterminateGC.Spread.Sheets.CellTypes.CheckBox.textIndeterminate(value)string
textTrueGC.Spread.Sheets.CellTypes.CheckBox.textTrue(value)string

ButtonCellType  标签没有子标签。下表列出了所有 ButtonCellType 标签的属性:

AttributeAPI ReferenceType
buttonBackColorGC.Spread.Sheets.CellTypes.Button.buttonBackColor(value)string
marginBottomGC.Spread.Sheets.CellTypes.Button.marginBottom(value)number
marginLeftGC.Spread.Sheets.CellTypes.Button.marginLeft(value)number
marginRightGC.Spread.Sheets.CellTypes.Button.marginRight(value)number
marginTopGC.Spread.Sheets.CellTypes.Button.marginTop(value)number
textGC.Spread.Sheets.CellTypes.Button.text(value)string

ComboBoxCellType 有以下属性:

AttributeAPI ReferenceType
editorValueTypeGC.Spread.Sheets.CellTypes.ComboBox.editorValueType(value)GC.Spread.Sheets.CellTypes.EditorValueType

ComboBoxCellType 有以下子元素

Child ElementAPI ReferenceCountType
itemGC.Spread.Sheets.CellTypes.itemsanyitem.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 元素的属性:

AttributeAPI ReferenceType
linkColorGC.Spread.Sheets.CellTypes.HyperLink.linkColor(value)string
linkToolTipGC.Spread.Sheets.CellTypes.HyperLink.linkToolTip(value)string
textGC.Spread.Sheets.CellTypes.HyperLink.text(value)number
visitedLinkColorGC.Spread.Sheets.CellTypes.HyperLink.visitedLinkColor(value)number
  • No labels