# Size Interface

> Size interface in the TX Sheet Control TypeScript API for Node.js: Unscaled drawing dimensions in CSS pixels. Resizing the editor never stretches these values.

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

---

Unscaled drawing dimensions in CSS pixels. Resizing the editor never stretches these values.

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.

### Members

#### Properties

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

### 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 createSizeReport(control: ServerSheetControl) {
    const book = control.workbook;
    const sheet = book.sheets.at(0);
    sheet.range('A1:B5').setValues([
        ['Region', 'Revenue'],
        ['North', 42000],
        ['South', 38500],
        ['East', 31200],
        ['West', 44900],
    ]);

    const chart = sheet.charts.add({
        type: 'column',
        title: 'Revenue by region',
        dataRange: 'A1:B5',
        anchor: { cell: 'D2' },
        size: { width: 480, height: 240 },
    });

    const size: Awaited<
        ReturnType<Awaited<ReturnType<ServerSheetControl['workbook']['sheets']['get']>>['drawings']['get']>
    >['size'] = { width: 640, height: 360 };

    chart.resize(size);
    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

- [Size.height Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/size/height-property/llms-full.txt): Size.height property in the TX Sheet Control TypeScript API for Node.js, with its syntax, its type number and a TypeScript example.
- [Size.width Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/size/width-property/llms-full.txt): Size.width property in the TX Sheet Control TypeScript API for Node.js, with its syntax, its type number and a TypeScript example.

---

## Nearby

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