SetColor Function
Changes the color of a given QR code item from an Envision document currently opened in the Canvas Envision Creator app.
SetColor(obj: [[[EvItem|canvas-envision-document-items.html#object-items]]], color: [[[EvQRCodeColor|evqrcodecolor-enumeration.html]]]): Promise<void>
Parameters
obj: EvItemAn Object item object, a QR code item from the Envision document currently opened in the Canvas Envision Creator app whose color should be changed.
If a given object item is not a QR code, the function throws an error.
color: EvQRCodeColorA member of the
EvQRCodeColorenumeration, the new color of the given QR code item.
Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the color of the given QR code item in the current document has been successfully changed.
09 April 2025