TX Sheet Control

PrintRect Interface

Interface

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

PropertyDescription
heightThe height value of PrintRect.
widthThe width value of PrintRect.
xThe x value of PrintRect.
yThe 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.

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

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

See Also