# CustomCellEditor.getValue Method

> CustomCellEditor.getValue method in the TX Sheet Control TypeScript API for Node.js, with the return type CellValue and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > CustomCellEditor > CustomCellEditor.getValue Method
- **306 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customcelleditor/getvalue-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customcelleditor/getvalue-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customcelleditor/getvalue-method/llms-full.txt

---

The getValue operation of CustomCellEditor.

Owner: [CustomCellEditor](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customcelleditor/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

### Syntax

```typescript
getValue(): CellValue
```

This overload has no parameters.

### Return Value

`CellValue`.

### Examples

Pass an existing CustomCellEditor from the owning document. Related handles and input bytes must belong to the intended document and application; the function applies the operation and inspects its result.

```typescript
function inspectCustomCellEditorGetValue(customCellEditor: { getValue(): unknown }) {
    const result = customCellEditor['getValue']();
    console.log(result);
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [CustomCellEditor Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customcelleditor/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)
- [CellValue Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellvalue/llms-full.txt)

---

## Nearby

- **Previous:** [CustomCellEditor.focus Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customcelleditor/focus-property/llms-full.txt)
- **Next:** [CustomCellType Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customcelltype/llms-full.txt)
