evCreate API 5.7 Help

SetZOrder Function

Moves a given layer to a given position in the stack of layers on a page in an Envision document currently opened in the Canvas Envision Creator app.

SetZOrder(layer: [[[EvItem|canvas-envision-document-items.html#layer-items]]], index: number): Promise<void>

Parameters

layer: EvItem

A Layer item object of a layer that should be moved to a given position in the stack of layers on a page in the Envision document currently opened in the Canvas Envision Creator app.

index: number

A number, a new position of the given layer in the stack of layers on the page. It is a zero-based index that is 0 for the topmost layer and increases by 1 for each following layer going down the stack.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the given layer has been successfully moved in the stack of layers on the page in the current Envision document.

13 March 2025