evCreate API 5.7 Help

GetCurrentLayer Function

Returns an item object of the layer currently selected (active) on a given page in an Envision document currently opened in the Canvas Envision Creator app.

GetCurrentLayer(page: [[[EvItem|canvas-envision-document-items.html#page-items]]]): Promise<[[[EvItem|canvas-envision-document-items.html#layer-items]]]>

Parameters

page: EvItem

A Page item object of a page in the Envision document currently opened in the Canvas Envision Creator app whose currently selected layer should be returned.

Return value

Promise<EvItem>

A Promise that, if fulfilled, resolves to a Layer item object of the layer currently selected on the given page in the current Envision document.

13 March 2025