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: EvItemAn 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: EvMultigonStyleA member of the
EvMultigonStyleenumeration, the new style of the given multigon item.
Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the style of the given multigon item in the current document has been successfully changed.
08 April 2025