Extends TextItem
An AreaText item represents a path in an Illustrator document which has text running within it's area. It uses the boundaries of the path to control the flow of characters, either horizontally or vertically. When the text reaches a boundary, it automatically wraps to fit inside the area defined by the path.
Constructors
Creates an area text item using the supplied path.
Sample code:
// create an abstract rectangle: var bottomLeft = new Point(10, 10); var size = new Size(200, 100); var rectangle = new Rectangle(bottomLeft, size); // create a rectangular path using the abstract rectangle: var path = new Path.Rectangle(rectangle); // create a area text item using the path: var areaText = new AreaText(path); // add some text to the path areaText.content = 'Text which will appear within the path';
- Parameters:
- area: Path — the path in which the text will appear
- orientation: String ('horizontal', 'vertical') — optional
- Returns:
- AreaText
Creates an area text item using the supplied rectangle.
Sample code:
// create an abstract rectangle: var bottomLeft = new Point(10, 10); var size = new Size(200, 100); var rectangle = new Rectangle(bottomLeft, size); // create an area text item using the rectangle: var areaText = new AreaText(rectangle); // add some text to the path areaText.content = 'Text which will appear within the path';
- Parameters:
- rect: Rectangle
- orientation: String ('horizontal', 'vertical') — optional
- Returns:
- AreaText
Properties
Rows and Columns
The number of columns for the text frame.
- Returns:
- Number
Specifies whether the text area uses row major order. When set to true, the text flows through the columns after which it flows to the first column of the next row. When set to false, the text flows through the rows after which it flows to the first row of the next column.
- Returns:
- Boolean
The column gutter in the text frame.
- Returns:
- Number
Inheritance
- Item
-
- name
- position
- style
- selected
- fullySelected
- locked
- visible
- clipMask
- targeted
- blendMode
- opacity
- isolated
- knockout
- alphaIsShape
- data
- document
- layer
- parent
- children
- firstChild
- lastChild
- nextSibling
- previousSibling
- index
- bounds
- strokeBounds
- controlBounds
- strokeColor
- strokeWidth
- strokeCap
- strokeJoin
- dashOffset
- dashArray
- miterLimit
- strokeOverprint
- fillColor
- fillOverprint
- windingRule
- resolution
- rasterize(items[, type[, resolution, antialiasing[, width, height]]])
- remove()
- removeChildren()
- copyTo(document)
- copyTo(item)
- clone()
- getKnockout(inherited)
- reverseChildren()
- hitTest(point[, request[, tolerance]])
- hitTest(point, tolerance)
- expand([flags[, steps]])
- rasterize([type[, resolution[, antialiasing[, width, height]]]])
- hasChildren()
- isEditable()
- isValid()
- appendTop(item)
- appendBottom(item)
- moveAbove(item)
- moveBelow(item)
- isAbove(item)
- isBelow(item)
- isParent(item)
- isChild(item)
- isDescendant(item)
- isAncestor(item)
- isGroupedWith(item)
- scale(sx, sy[, center])
- scale(scale[, center])
- translate(t)
- rotate(angle[, center])
- shear(shx, shy)
- transform(matrix[, flags])