# NamedRangeDefinition Interface

> NamedRangeDefinition interface in the TX Sheet Control TypeScript API for the browser: Workbook or sheet scoped formula name.

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

---

Workbook or sheet scoped formula name; references use Excel formula syntax.

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

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

### Members

#### Properties

| Property | Description |
|---|---|
| [comment](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangedefinition/comment-property/llms-full.txt) | The comment value of NamedRangeDefinition. |
| [hidden](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangedefinition/hidden-property/llms-full.txt) | The hidden value of NamedRangeDefinition. |
| [name](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangedefinition/name-property/llms-full.txt) | The name value of NamedRangeDefinition. |
| [refersTo](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangedefinition/refersto-property/llms-full.txt) | The refersTo value of NamedRangeDefinition. |
| [sheetId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangedefinition/sheetid-property/llms-full.txt) | The sheetId value of NamedRangeDefinition. |

### Examples

Create sample data and obtain this detached result from the owning document. Return the selected data to the report or application UI.

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

function createNamedRangeDefinitionReport(book: Workbook) {
    const sheet = book.sheets.at(0);
    sheet.range('B8:B9').setValues([[120], [80]]);
    sheet.cell('B10').setFormula('=SUM(B8:B9)');
    sheet.range('B8:B10').format({ numberFormatCode: '#,##0.00', fontSize: 11 });
    book.names.set('InvoiceTotal', "='" + sheet.name.replace(/'/g, "''") + "'!$B$10");

    const result = book.names.get('InvoiceTotal')!;
    return result;
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [NamedRangeDefinition.comment Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangedefinition/comment-property/llms-full.txt): NamedRangeDefinition.comment property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [NamedRangeDefinition.hidden Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangedefinition/hidden-property/llms-full.txt): NamedRangeDefinition.hidden property in the TX Sheet Control TypeScript API for the browser, with its type boolean | undefined and a TypeScript example.
- [NamedRangeDefinition.name Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangedefinition/name-property/llms-full.txt): NamedRangeDefinition.name property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [NamedRangeDefinition.refersTo Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangedefinition/refersto-property/llms-full.txt): NamedRangeDefinition.refersTo property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [NamedRangeDefinition.sheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangedefinition/sheetid-property/llms-full.txt): NamedRangeDefinition.sheetId property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.

---

## Nearby

- **Previous:** [NamedRangeCollection.set Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangecollection/set-method/llms-full.txt)
- **Next:** [NamedRangeDefinition.comment Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedrangedefinition/comment-property/llms-full.txt)
