# DimensionCollection.at Method

> DimensionCollection.at method in the TX Sheet Control JavaScript API for the browser: Use a zero-based index. Includes the syntax and a JavaScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > DimensionCollection > DimensionCollection.at Method
- **372 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dimensioncollection/at-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dimensioncollection/at-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dimensioncollection/at-method/llms-full.txt

---

Use a zero-based index.

Owner: [DimensionCollection](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dimensioncollection/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```javascript
owner.at(index)
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `index` | `number` | No | Zero-based collection index. |

### Return Value

`Dimension`.

A detached result or a handle bound to the same worksheet.

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

```javascript
function applyDimensionCollectionAt(book) {
    const dimensionCollection = book.sheets.at(0).rows;
    const result = dimensionCollection.at(0);
    return 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

- [DimensionCollection Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dimensioncollection/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)
- [Dimension Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/dimension/llms-full.txt)

---

## Nearby

- **Previous:** [DimensionCollection Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dimensioncollection/llms-full.txt)
- **Next:** [DimensionCollection.axis Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dimensioncollection/axis-property/llms-full.txt)
