TX Sheet Control

PrintLayout Interface

Interface

DOM-free page descriptions. Source rectangles use unscaled sheet CSS pixels; content/paper use 96 dpi physical pixels. Map source to content using scale, and clip at content.

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

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

Members

Properties

PropertyDescription
dateThe date value of PrintLayout.
dpiThe dpi value of PrintLayout.
pageCountThe pageCount value of PrintLayout.
pagesThe pages value of PrintLayout.
paperThe paper value of PrintLayout.
rangeThe range value of PrintLayout.
scaleThe scale value of PrintLayout.
sheetIdThe sheetId value of PrintLayout.
sheetNameThe sheetName value of PrintLayout.
unitsThe units value of PrintLayout.
versionThe version value of PrintLayout.

Examples

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

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

function inspectPrintLayoutVersion(printLayout: PrintLayout) {
    const value = printLayout['version'];
    console.log('PrintLayout.version', value);
}

See Also