evCreate API 5.7 Help

SetAlignment Function

Aligns or distributes given object items on the page in an Envision document currently opened in the Canvas Envision Creator app.

SetAlignment( objs: [[[EvItem|canvas-envision-document-items.html#object-items]]][], alignment: [[[EvObjectAlignment|evobjectalignment-enumeration.html]]], boundingBox?: boolean ): Promise<void>

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: EvObjectAlignment

A member of the EvObjectAlignment enumeration, the way how the given object items should be aligned or distributed on the page.

boundingBox?: boolean

A 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 void if the given object items have been successfully aligned or distributed on the page.

27 March 2025