evCreate API 5.7 Help

SetMargins Function

Sets the margins of a given page in an Envision document currently opened in the Canvas Envision Creator app.

SetMargins(page: [[[EvItem|canvas-envision-document-items.html#page-items]]], margins: [[[EvRect|evrect-interface.html]]]): Promise<void>

Parameters

page: EvItem

A Page item object of a page in the Envision document currently opened in the Canvas Envision Creator app whose margins should be set.

margins: EvRect

An EvRect object, a rectangular area that defines the margins of the given page in the length UoM global for the evCreate API.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the margins of the given page in the current Envision document have been successfully set.

13 March 2025