evCreate API 5.7 Help

SetFill Function

Updates the fill of a given object item from an Envision document currently opened in the Canvas Envision Creator app.

SetFill(obj: [[[EvItem|canvas-envision-document-items.html#object-items]]], fill: [[[EvFill|evfill-interface.html]]]): Promise<void>

Parameters

obj: EvItem

An Object item object, an object item from the Envision document currently opened in the Canvas Envision Creator app whose fill should be updated.

fill: EvFill

An EvFill object, a new fill that should be set for the given object item.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the fill of the given object item has been successfully updated.

Discussion

Trying to update the fill of an object item that does not support a fill, such as an image item, throws an error.

27 March 2025