evCreate API 5.7 Help

SetVisible Function

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

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

Parameters

obj: EvItem

An Object item object, an object item from the Envision document currently opened in the Canvas Envision Creator app that should be hidden or shown on the layer.

isVisible: boolean

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

Return value

Promise<void>

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

27 March 2025