evCreate API 5.7 Help

SetStyle Function

Changes the style of a given multigon item from an Envision document currently opened in the Canvas Envision Creator app.

SetStyle(obj: [[[EvItem|canvas-envision-document-items.html#object-items]]], style: [[[EvMultigonStyle|evmultigonstyle-enumeration.html]]]): Promise<void>

Parameters

obj: EvItem

An Object item object, a multigon item from the Envision document currently opened in the Canvas Envision Creator app whose style should be changed.

If a given object item is not a multigon, the function throws an error.

style: EvMultigonStyle

A member of the EvMultigonStyle enumeration, the new style of the given multigon item.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the style of the given multigon item in the current document has been successfully changed.

08 April 2025