SetTextCentered Function
Manages the centering of the label along the arrow line of a given dimension item from an Envision document currently opened in the Canvas Envision Creator app.
SetTextCentered(obj: [[[EvItem|canvas-envision-document-items.html#object-items]]], centered: boolean): Promise<void>
Parameters
obj: EvItemAn Object item object, a dimension item from the Envision document currently opened in the Canvas Envision Creator app whose label should be placed in the middle or on a side of the arrow line.
If a given object item is not a dimension, the function throws an error.
centered: booleanA Boolean, a switch to place the dimension label:
true: in the middle of the dimension arrow line.false: on a side of the dimension arrow line.
Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the centering of the given dimension item's label has been successfully updated in the current document.
31 March 2025