
Adobe Photoshop CS3
JavaScript Scripting Reference
JavaScript Object Reference 184
parent
object
(
ArtLayer
)
Read-write. The
TextItem
object's container.
position
array
(UnitValue)
Read-write. The position of origin for the text. The
array must contain two values (unit value).
Tip:
Setting the
position
property is basically
equivalent to clicking the text tool at a point in
the document to create the point of origin for
text.
rightIndent
UnitValue
Read-write. The amount of space (unit value) to
indent text from the right (-1296 - 1296).
size
number (double)
Read-write. The font size in points.
spaceAfter
UnitValue
Read-write. The amount of space (unit value) to use
after each paragraph (-1296 - 1296).
spaceBefore
UnitValue
Read-write. The amount of space (unit value) to use
before each paragraph (-1296 - 1296).
strikeThru
StrikeThruType
Read-write. The text strike through option to use.
textComposer
TextComposer
Read-write. The composition method to use to
evaluate line breaks and optimize the specified
hyphenation and justification options.
Note:
Valid only when
kind = TextType.PARAGRAPHTEXT
. See
kind
.
tracking
number (double)
Read-write. The amount of uniform spacing between
multiple characters (-1000 - 10000).
Note:
Tracking units are 1/1000 of an em space. The
width of an em space is relative to the current
type size. In a 1-point font, 1 em equals 1 point;
in a 10-point font, 1 em equals 10 points. So,
for example, 100 units in a 10-point font are
equivalent to 1 point.
typename
string
Read-only. The class name of the referenced
textItem
object.
underline
UnderlineType
Read-write. The text underlining options.
useAutoLeading
boolean
Read-write. Indicates whether to use a font's built-in
leading information.
verticalScale
number (long)
Read-write. Character scaling (vertical) in proportion
to horizontal scale (0 - 1000 in percent). See
horizontalScale
.
warpBend
number (double)
Read-write. The warp bend percentage (-100 - 100).
warpDirection
Direction
Read-write. The warp direction.
Property
Value Type
What it is (Continued)