# CustomFunctionContext Interface

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

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

---

Registration context available to every custom calculation function.

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

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [address](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/customfunctioncontext/address-property/llms-full.txt) | The address value of CustomFunctionContext. |
| [sheetId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/customfunctioncontext/sheetid-property/llms-full.txt) | The sheetId value of CustomFunctionContext. |
| [signal](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/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 { CustomFunctionContext } from '@txtextcontrol/tx-sheet-control';

function inspectCustomFunctionContextSheetId(customFunctionContext: CustomFunctionContext) {
    const value = customFunctionContext['sheetId'];
    console.log('CustomFunctionContext.sheetId', value);
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/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/browser/customfunctioncontext/address-property/llms-full.txt): CustomFunctionContext.address property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [CustomFunctionContext.sheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/customfunctioncontext/sheetid-property/llms-full.txt): CustomFunctionContext.sheetId property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [CustomFunctionContext.signal Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/customfunctioncontext/signal-property/llms-full.txt): CustomFunctionContext.signal property in the TX Sheet Control TypeScript API for the browser, with its type CustomFunctionSignal and a TypeScript example.

---

## Nearby

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