# Worksheet.move Method

> Worksheet.move method in the TX Sheet Control TypeScript API for the browser: Reorders this worksheet within its group; index is zero-based.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > Worksheet > Worksheet.move Method
- **366 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/worksheet/move-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/worksheet/move-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/worksheet/move-method/llms-full.txt

---

Reorders this worksheet within its group; index is zero-based.

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

### Syntax

```typescript
move(index: number): void
```

### Parameters

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

### Return Value

`void`.

### 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 { Workbook } from '@txtextcontrol/tx-sheet-control';

function applyWorksheetMove(book: Workbook) {
    const worksheet = book.sheets.at(0);

    worksheet.move(0);
}
```

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

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

---

## Nearby

- **Previous:** [Worksheet.id Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/worksheet/id-property/llms-full.txt)
- **Next:** [Worksheet.name Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/worksheet/name-property/llms-full.txt)
