# CustomFunctionContext Interface

> CustomFunctionContext interface in the TX Sheet Control TypeScript API for Node.js: Registration context available to every custom calculation function.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > CustomFunctionContext Interface
- **423 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/llms-full.txt

---

Registration context available to every custom calculation function.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Members

#### Properties

| Property | Description |
|---|---|
| [address](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/address-property/llms-full.txt) | The address value of CustomFunctionContext. |
| [sheetId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/sheetid-property/llms-full.txt) | The sheetId value of CustomFunctionContext. |
| [signal](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/signal-property/llms-full.txt) | The signal value of CustomFunctionContext. |

### Examples

Pass the CustomFunctionContext value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```typescript
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

function inspectCustomFunctionContextSheetId(
    customFunctionContext: Parameters<
        Parameters<ServerSheetControl['workbook']['calculation']['registerFunction']>[1]['evaluate']
    >[1],
) {
    const value = customFunctionContext['sheetId'];
    console.log('CustomFunctionContext.sheetId', value);
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)

---

## In This Section

- [CustomFunctionContext.address Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/address-property/llms-full.txt): CustomFunctionContext.address property in the TX Sheet Control TypeScript API for Node.js, with its type string and a TypeScript example.
- [CustomFunctionContext.sheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/sheetid-property/llms-full.txt): CustomFunctionContext.sheetId property in the TX Sheet Control TypeScript API for Node.js, with its type string and a TypeScript example.
- [CustomFunctionContext.signal Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/signal-property/llms-full.txt): CustomFunctionContext.signal property in the TX Sheet Control TypeScript API for Node.js, with its type CustomFunctionSignal and a TypeScript example.

---

## Nearby

- **Previous:** [CustomCellType.render Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customcelltype/render-method/llms-full.txt)
- **Next:** [CustomFunctionContext.address Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/address-property/llms-full.txt)
