# GC.Spread.Sheets.CellTypes.EditorValueType

## Content

# Enumeration: EditorValueType

[Sheets](../modules/GC.Spread.Sheets).[CellTypes](../modules/GC.Spread.Sheets.CellTypes).EditorValueType

 Specifies what is written out to the data model for a selected item from
 certain cell types that offer a selection of multiple values.

**`readonly`**

**`example`**
```
//This example uses the EditorValueType enumeration.
var cellType2 = new GC.Spread.Sheets.CellTypes.ComboBox();
cellType2.items(["a","b","c"]);
cellType2.editorValueType(GC.Spread.Sheets.CellTypes.EditorValueType.text);
activeSheet.getCell(2, 2).cellType(cellType2);
```

## Table of contents

### Enumeration members

- [index](GC.Spread.Sheets.CellTypes.EditorValueType#index)
- [text](GC.Spread.Sheets.CellTypes.EditorValueType#text)
- [value](GC.Spread.Sheets.CellTypes.EditorValueType#value)

## Enumeration members

### <a id="index" name="index"></a> index

• **index** = `1`

Writes the index of the selected item to the model.

___

### <a id="text" name="text"></a> text

• **text** = `0`

 Writes the text value of the selected item to the model.

___

### <a id="value" name="value"></a> value

• **value** = `2`

 Writes the corresponding data value of the selected item to the model.
