addBoxText()

app.project.item(index).layers.addBoxText(sourceText)

Description

Creates a new paragraph (box) text layer and adds the new TextLayer object to this collection.

To create a point text layer, use the addText() method. For more information, see LayerCollection addText() method”.

Parameters

source Text Optional; a string containing the source text of the new layer, or a TextDocument object containing the source text of the new layer.

Returns

TextLayer object.

Other Tags

Posted in LayerCollection object and tagged , , , , , , , , , , , .