TX Sheet Control

PictureSource Interface

Interface

Exactly one embedded picture source: bytes, data URL or base64 with an optional MIME type.

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
altTextThe altText value of PictureSource.
base64The base64 value of PictureSource.
bytesThe bytes value of PictureSource.
dataUrlThe dataUrl value of PictureSource.
mimeTypeThe mimeType value of PictureSource.

Examples

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

function inspectPictureSourceBase64(pictureSource: { base64: string | undefined }) {
    const value = pictureSource['base64'];
    console.log('PictureSource.base64', value);
}

See Also