evCreate API 5.7 Help

SetVisible Function

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

SetVisible(layer: [[[EvItem|canvas-envision-document-items.html#layer-items]]], isVisible: boolean): Promise<void>

Parameters

layer: EvItem

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

isVisible: boolean

A Boolean, a switch to hide (false) or show (true) the given layer on the page in the current Envision document.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the given layer has been successfully hidden or shown on the page in the current Envision document.

13 March 2025