# SheetView Class

> SheetView class in the browser JavaScript API: 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 > JavaScript API > Browser Editor > SheetView Class
- **810 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/sheetview/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/sheetview/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/sheetview/llms-full.txt

---

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

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

ES module import: `import { SheetView } from '@txtextcontrol/tx-sheet-control';`.

### Constructor

```javascript
new SheetView(sheet)
```

| 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/javascript-api/browser/sheetview/settings-property/llms-full.txt) | The settings value of SheetView. |
| [sheet](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/sheetview/sheet-property/llms-full.txt) | The sheet value of SheetView. |

#### Methods

| Method | Description |
|---|---|
| [freeze](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/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/javascript-api/browser/sheetview/reset-method/llms-full.txt) | Restores a single unfrozen viewport. |
| [split](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/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.

```javascript
function createSheetViewReport(book) {
    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

- [JavaScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/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/javascript-api/browser/sheetview/freeze-method/llms-full.txt): SheetView.freeze method in the TX Sheet Control JavaScript API for the browser: Freezes data rows and columns; headings are already fixed separately.
- [SheetView.reset Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/sheetview/reset-method/llms-full.txt): SheetView.reset method in the TX Sheet Control JavaScript API for the browser: Restores a single unfrozen viewport. Shown with a JavaScript example.
- [SheetView.settings Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/sheetview/settings-property/llms-full.txt): SheetView.settings property in the TX Sheet Control JavaScript API for the browser, with its type SheetViewSettings and a JavaScript example.
- [SheetView.sheet Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/sheetview/sheet-property/llms-full.txt): SheetView.sheet property in the TX Sheet Control JavaScript API for the browser, with its type Worksheet and a JavaScript example.
- [SheetView.split Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/sheetview/split-method/llms-full.txt): SheetView.split method in the TX Sheet Control JavaScript API for the browser: Creates worksheet split panes at the specified row and column boundaries.

---

## Nearby

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