AddLayer Function
Adds a new layer to a given page in an Envision document currently opened in the Canvas Envision Creator app.
AddLayer(page: [[[EvItem|canvas-envision-document-items.html#page-items]]], atIndex?: number, name?: string): Promise<[[[EvItem|canvas-envision-document-items.html#layer-items]]]>
Parameters
page: EvItemA Page item object of a page in the Envision document currently opened in the Canvas Envision Creator app to which the new layer should be added.
atIndex?: numberA number, a position where the new layer will be added to the stack of layers on the page. If it is not specified, the new layer will be the topmost. The layer position in the stack is a zero-based index that is
0for the topmost layer and increases by1for each following layer going down the stack.name?: stringA string, the name of the new layer. If it is not specified, the system generates the layer name.
Return value
13 March 2025