evCreate API 5.7 Help

SetName Function

Updates the name of a given layer on a page in an Envision document currently opened in the Canvas Envision Creator app.

SetName(layer: [[[EvItem|canvas-envision-document-items.html#layer-items]]], name: string): Promise<void>

Parameters

layer: EvItem

A Layer item object of a layer on a page in the Envision document currently opened in the Canvas Envision Creator app that should be renamed.

name: string

A string, a new name for the given layer.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the given layer in the current Envision document has been successfully renamed.

22 March 2025