OptionalblendBlend mode of the newly created layer or group.
OptionalcolorLabel color of the newly created layer or group.
OptionalcontentsText content of the newly created text layer.
OptionalfontFont PostScript name of the newly created text layer.
OptionalfontFont size of the newly created text layer in pixels.
OptionalgroupWhether to use previous layer to create clipping mask.
OptionalmodeDeprecated, please use blendMode above as it will override this value.
OptionalnameName of the newly created layer. If no value is provided, then a name will be generated following the template, "Layer #".
OptionalopacityOpacity of the newly created layer or group.
OptionalpositionInsertion coordinates of the newly created text layer, in pixels
OptionaltextText color of the newly created text layer.
An object literal can be constructed with any of the following properties and passed to Document.createLayer. As a type,
TextLayerCreateOptionscan be used in Typescript development.Targetfolder
objects/createoptions
Optionobject
Min Version
24.2