Sg2.0
TextFrame
Packages

TextFrame extends Art

Properties

The character style of the text frame.
Returns:
The text contents of the text frame.
Returns:
String
Read-only.Returns the index of the last visible character of the text frame.(this is the equivalent of calling TextFrame.visibleRange.end)
Returns:
Number
Read-only.Returns the index of this text frame in the story's list of text frames.
Returns:
Number
Read-only.Returns true if the text frame is linked, false otherwise.
Returns:
Boolean
Read-only.Returns the next text frame in a story of various linked text frames
Returns:
Specifies wether to use optical alignment within the text frame.
Optical aligment hangs punctuation outside the edges of a text frame.
Returns:
Boolean
The orientation of the text in the text frame asspecified by the TextFrame.ORIENTATION_* static properties.
Returns:
Number
The paragraph style of the text frame.
Returns:
Read-only.Returns the previous text frame in a story of various linked text frames
Returns:
Read-only.Returns a text range for all the characters, even the invisible ones outsidethe container.
Returns:
Read-only.Returns the selected text of the text frame as a text range
Returns:
The line spacing value for the text frame in points.
Returns:
Number
Read-only.Returns the index of the first visible character of the text frame.(this is the equivalent of calling TextFrame.visibleRange.start)
Returns:
Number
story
Read-only.Returns the Story that the text frame belongs to.
Returns:
Read-only.In case there's an overflow in the text, this only returns a rangeover the visible characters, while getRange() returns one over thewhole text.
Returns:
Returns:
Number
Returns:
Number

Functions

Converts the text in the text frame to outlines. Unlike the Illustrator 'Create Outlines' action, this won't remove the text frame.
Returns:
Art - An Art item containing the outlined text.
Links the supplied text frame to this one.
Parameters:
next: TextFrame - The text frame that will be linked.
Returns:
Boolean - True if the text frame was linked, false otherwise
Parameters:
includeOverflow: Boolean
Returns:
Number
Unlinks the text frame from its current story.
Returns:
Boolean - True if the operation was successful, false otherwise
Unlinks the text frame from its current story and breaks up the story into two parts after the text frame.
Returns:
Boolean - True if the operation as successful, false otherwise
Unlinks the text frame from its current story and breaks up the story into two parts before the text frame.
Returns:
Boolean - True if the operation as successful, false otherwise

Inheritance