evCreate API 5.7 Help

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

An 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: EvQRCodeColor

A member of the EvQRCodeColor enumeration, the new color of the given QR code item.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the color of the given QR code item in the current document has been successfully changed.

09 April 2025