Create Function
Creates a new text item prepopulated with given content and formatting within a given fixed bounding box in an Envision document currently opened in the Canvas Envision Creator app.
Parameters
text: stringA string, the text that should be contained in the new text item.
bounds: EvRectAn
EvRectobject, the position and size of the bounding box of the new text item. The dimensions of the bounding box are fixed regardless of the size of the given text content.zOrder?: EvObjectZOrderAn
EvObjectZOrderobject that includes:The layer item object of a layer in the current document where the new text item should be added. The default value is the current layer on the current page.
The position of the new text item in the stack of object items on the given layer. It is a zero-based index that is
0for the topmost object item on the layer and increases by1for each following object item going down the stack. The default value is0.
font?: EvFontStyleAn
EvFontStyleobject, a custom text formatting that should be applied to the text contained in the new text item.If Markdown formatting is included in the given text, it is applied to this text after the custom text formatting has been applied.
withMarkdown?: booleanA Boolean, a flag to indicate whether the given text includes (
true) or does not include (false) Markdown formatting.The default value is
false.