Sg 2.9
AreaText
Packages RSS
About
News
Gallery
Scripts
Tutorials
Download
Reference
Forum
Users
License
Twitter

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

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

Properties

The path item that defines the text item's area. Read-only.

The padding within the text area.

    Returns:
  • Number

Rows and Columns

The number of rows for the text frame.

    Returns:
  • Number

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 row gutter in the text frame.

    Returns:
  • Number

The column gutter in the text frame.

    Returns:
  • Number

Inheritance


AltStyle によって変換されたページ (->オリジナル) /