# SheetView Class

> SheetView class in the TX Sheet Control TypeScript API for Node.js: Worksheet view settings never alter the underlying row heights, column widths or print area.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > SheetView Class
- **820 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/llms-full.txt

---

Worksheet view settings never alter the underlying row heights, column widths or print area.

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

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Constructor

```typescript
new SheetView(sheet: Worksheet): SheetView
```

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `sheet` | `Worksheet` | No | Value matching sheet's declared type and the owning object's validation rules. |

Returns: `SheetView`.

### Members

#### Properties

| Property | Description |
|---|---|
| [settings](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/settings-property/llms-full.txt) | The settings value of SheetView. |
| [sheet](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/sheet-property/llms-full.txt) | The sheet value of SheetView. |

#### Methods

| Method | Description |
|---|---|
| [freeze](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/freeze-method/llms-full.txt) | Freezes data rows and columns; headings are already fixed separately. |
| [reset](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/reset-method/llms-full.txt) | Restores a single unfrozen viewport. |
| [split](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/split-method/llms-full.txt) | Creates worksheet split panes at the specified row and column boundaries. |

### Examples

Use a fresh workbook. Create and format the sample data, apply this API and retain the returned document or result in your application. In the browser pass editor.workbook; in Node.js pass the server control.

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

function createSheetViewReport(control: ServerSheetControl) {
    const book = control.workbook;
    const sheet = book.sheets.at(0);
    sheet.cell('A1').setText('October invoice');
    sheet
        .cell('A1')
        .format({
            fontFamily: 'Liberation Sans',
            fontSize: 16,
            bold: true,
            textColor: '#ffffff',
            fillColor: '#163b63',
        });

    sheet.columns.at(0).setWidth({ pixels: 240 });
    sheet.range('B8:B9').setValues([[120], [80]]);
    sheet.cell('B10').setFormula('=SUM(B8:B9)');
    sheet.range('B8:B10').format({ numberFormatCode: '#,##0.00', fontSize: 11 });
    sheet.viewport.freeze({ rows: 1, columns: 1 });
    return sheet;
}
```

### See Also

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

---

## In This Section

- [SheetView.freeze Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/freeze-method/llms-full.txt): SheetView.freeze method in the TX Sheet Control TypeScript API for Node.js: Freezes data rows and columns; headings are already fixed separately.
- [SheetView.reset Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/reset-method/llms-full.txt): SheetView.reset method in the TX Sheet Control TypeScript API for Node.js: Restores a single unfrozen viewport. Includes the syntax and a TypeScript example.
- [SheetView.settings Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/settings-property/llms-full.txt): SheetView.settings property in the TX Sheet Control TypeScript API for Node.js, with its type SheetViewSettings and a TypeScript example.
- [SheetView.sheet Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/sheet-property/llms-full.txt): SheetView.sheet property in the TX Sheet Control TypeScript API for Node.js, with its type Worksheet and a TypeScript example.
- [SheetView.split Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/split-method/llms-full.txt): SheetView.split method in the TX Sheet Control TypeScript API for Node.js: Creates worksheet split panes at the specified row and column boundaries.

---

## Nearby

- **Previous:** [SheetValidation.sheet Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetvalidation/sheet-property/llms-full.txt)
- **Next:** [SheetView.freeze Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetview/freeze-method/llms-full.txt)
