SetAlignment Function
Aligns or distributes given object items on the page in an Envision document currently opened in the Canvas Envision Creator app.
Parameters
objs: EvItem[]An array of Object item objects, one or more object items in the Envision document currently opened in the Canvas Envision Creator app that should be aligned or distributed on the page.
The first object in the array is the key object for alignment or distribution.
alignment: EvObjectAlignmentA member of the
EvObjectAlignmentenumeration, the way how the given object items should be aligned or distributed on the page.boundingBox?: booleanA Boolean, a switch to indicate whether to align the given object items on their bounding boxes (
true) or outlines (false).The default value is
false.
Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the given object items have been successfully aligned or distributed on the page.