evCreate API 5.7 Help

CountObjects Function

Counts the number of objects on a given layer on a page in the Envision document currently opened in the Canvas Envision Creator app.

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

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 whose objects should be counted.

Return value

Promise<number>

A Promise that, if fulfilled, resolves to the number of objects on the given layer in the current Envision document.

13 March 2025