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-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

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.

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

See Also