TX Sheet Control

FileProgressEvent Interface

Interface

Processing stage, with real work counts when available. Missing total means indeterminate, never an estimated percentage.

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
byteLengthInput or output byte count, when known.
completedThe completed value of FileProgressEvent.
operationThe operation value of FileProgressEvent.
operationIdThe operationId value of FileProgressEvent.
phaseThe phase value of FileProgressEvent.
streamTypeThe streamType value of FileProgressEvent.
totalThe total value of FileProgressEvent.
unitThe unit value of FileProgressEvent.

Examples

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

function inspectFileProgressEventPhase(fileProgressEvent: { phase: unknown }) {
    const value = fileProgressEvent['phase'];
    console.log('FileProgressEvent.phase', value);
}

See Also