evCreate API 5.7 Help

Create Function

Creates a new QR code item in an Envision document currently opened in the Canvas Envision Creator app.

Create( bounds: [[[EvRect|evrect-interface.html]]], qrstring?: string, color?: [[[EvQRCodeColor|evqrcodecolor-enumeration.html]]], zOrder?: [[[EvObjectZOrder|evobjectzorder-interface.html]]] ): Promise<[[[EvItem|canvas-envision-document-items.html#object-items]]]>

Parameters

bounds: EvRect

An EvRect object, the position and size of the bounding box of the new QR code item.

qrstring?: string

A string, the payload encoded in the new QR code item.

The default value is "https://www.canvasgfx.com/".

color?: EvQRCodeColor

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

The default value is "black".

zOrder?: EvObjectZOrder

An EvObjectZOrder object that includes:

  • The layer item object of a layer in the current document where the new QR code item should be added. The default value is the current layer on the current page.

  • The position of the new QR code item in the stack of object items on the given layer. It is a zero-based index that is 0 for the topmost object item on the layer and increases by 1 for each following object item going down the stack. The default value is 0.

Return value

Promise<EvItem>

A Promise that, if fulfilled, resolves to an Object item object of the new QR code item successfully created in the current document.

09 April 2025