# Range.rowCount Property

> Range.rowCount property in the TX Sheet Control TypeScript API for Node.js, with its syntax, its type number and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > Range > Range.rowCount Property
- **427 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/range/rowcount-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/range/rowcount-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/range/rowcount-property/llms-full.txt

---

The rowCount value of Range.

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

### Syntax

```typescript
readonly rowCount: number
```

Read through the owning object: `owner.rowCount`. Follow the declared mutability and owning object lifetime.

### Examples

Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.

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

function readReportRangeRowCount(control: ServerSheetControl) {
    const book = control.workbook;
    book.sheets
        .at(0)
        .range('B8:B9')
        .setValues([[120], [80]]);

    const range = book.sheets.at(0).range('B8:B9');

    const value = range['rowCount'];
    return ['Range.rowCount', value];
}
```

### 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

- [Range Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/range/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## Nearby

- **Previous:** [Range.read Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/range/read-method/llms-full.txt)
- **Next:** [Range.setFormulas Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/range/setformulas-method/llms-full.txt)
