# PrintRect Interface

> PrintRect interface in the browser TypeScript API: Position and dimensions within a print-layout coordinate system, independent of editor zoom.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > PrintRect Interface
- **378 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/llms-full.txt

---

Position and dimensions within a print-layout coordinate system, independent of editor zoom.

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

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [height](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/height-property/llms-full.txt) | The height value of PrintRect. |
| [width](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/width-property/llms-full.txt) | The width value of PrintRect. |
| [x](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/x-property/llms-full.txt) | The x value of PrintRect. |
| [y](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/y-property/llms-full.txt) | The y value of PrintRect. |

### Examples

Pass the PrintRect value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

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

function inspectPrintRectX(printRect: PrintRect) {
    const value = printRect['x'];
    console.log('PrintRect.x', value);
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Exporting Worksheets to PDF](https://docs.textcontrol.com/tx-sheet-control/pdf/export/llms-full.txt)

---

## In This Section

- [PrintRect.height Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/height-property/llms-full.txt): PrintRect.height property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.
- [PrintRect.width Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/width-property/llms-full.txt): PrintRect.width property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.
- [PrintRect.x Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/x-property/llms-full.txt): PrintRect.x property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.
- [PrintRect.y Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/y-property/llms-full.txt): PrintRect.y property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.

---

## Nearby

- **Previous:** [PrintPage.source Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printpage/source-property/llms-full.txt)
- **Next:** [PrintRect.height Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/height-property/llms-full.txt)
