addText()

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

Description

Creates a new point text layer and adds the new TextLayer object to this collection.

To create a paragraph (box) text layer, use the addBoxText() method. For more information, see LayerCollection addBoxText() method”.

Parameters

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

Returns

TextLayer object.

Other Tags

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