# Cell 요소

## Content

셀 요소에는 CheckBoxCellType, TextCellType, ButtonCellType, ComboBoxCellType, HyperLinkCellType가 있습니다.
TextCellType은 속성이나 자식 요소가 없습니다.
CheckBoxCellType 요소는 자식 요소가 없습니다. 다음 표는 CheckBoxCellType 요소의 속성들을 나열한 것입니다.

| **속성** | **API 레퍼런스** | **타입** |
| --- | -------- | --- |
| 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 요소의 속성들을 나열한 것입니다.

| **속성** | **API 레퍼런스** | **타입** |
| --- | -------- | --- |
| 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 요소는 다음 속성을 가집니다.

| **속성** | **API 레퍼런스** | **타입** |
| --- | -------- | --- |
| editorValueType | `GC.Spread.Sheets.CellTypes.ComboBox.editorValueType(value)` | `GC.Spread.Sheets.CellTypes.EditorValueType` |

ComboBoxCellType 요소는 다음 자식 요소를 가집니다.

| **자식 요소** | **API 레퍼런스** | **개수** | **타입** |
| ----- | -------- | --- | --- |
| 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 요소의 속성들을 나열한 것입니다.

| **속성** | **API 레퍼런스** | **타입** |
| --- | -------- | --- |
| 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` |
