# EditorUi.tracePrecedents Method

> EditorUi.tracePrecedents method in the TX Sheet Control TypeScript API for Node.js: Draws screen-only formula traces for the active cell.

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

---

Draws screen-only formula traces for the active cell; returns cross-sheet references.

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

### Syntax

```typescript
tracePrecedents(): FormulaCellReference[]
```

This overload has no parameters.

### Return Value

`FormulaCellReference[]`.

### Examples

Pass an existing EditorUi 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 applyEditorUiTracePrecedents(editorUi: { tracePrecedents(): unknown }) {
    const result = editorUi['tracePrecedents']();
    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

- [EditorUi Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)
- [FormulaCellReference Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/formulacellreference/llms-full.txt)

---

## Nearby

- **Previous:** [EditorUi.traceDependents Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/tracedependents-method/llms-full.txt)
- **Next:** [EditorUi.viewMode Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/viewmode-property/llms-full.txt)
