A text frame.
Go to Property Listing | Method Listing
createOutlines, recompose, findText, changeText, findGrep, changeGrep, findGlyph, changeGlyph, findObject, changeObject, findTransliterate, changeTransliterate, placeAndLink, bringToFront, sendToBack, bringForward, sendBackward, makeCompoundPath, releaseCompoundPath, intersectPath, addPath, subtractPath, minusBack, excludeOverlapPath, convertShape, contentPlace, store, insertLabel, placeXML, autoTag, markup, place, override, removeOverride, detach, remove, fit, flipItem, duplicate, move, applyObjectStyle, clearObjectStyleOverrides, clearTransformations, transform, transformValuesOf, resolve, redefineScaling, resize, reframe, transformAgain, transformSequenceAgain, transformAgainIndividually, transformSequenceAgainIndividually, exportFile, asynchronousExportFile, select, extractLabel, toSource, getElements, toSpecifier, addEventListener, removeEventListener
AnchoredObjectSetting, AnimationSetting, ArrowHead, Article, BaselineFrameGridOption, Boolean, Buttons, Character, Characters, CheckBoxes, ComboBox, ComboBoxes, ContentTransparencySetting, ContentType, CornerOptions, DimensionsConstraints, DisplaySettingOptions, EPSTexts, EndCap, EndJoin, EventListeners, Events, FillTransparencySetting, Flip, Footnotes, FormFields, Graphic, GraphicLine, GraphicLines, GridDataInformation, Group, Groups, Guide, HiddenTexts, InsertionPoints, Layer, Lines, LinkedPageItemOption, ListBox, ListBoxes, MasterSpread, Movie, MultiStateObjects, Notes, NothingEnum, Number, Object, ObjectExportOption, ObjectStyle, Oval, Ovals, Page, PageItem, PageItems, Paragraphs, Paths, PlaceGun, Polygon, Polygons, Preferences, RadioButtons, Rectangle, Rectangles, SignatureField, SignatureFields, Snippet, Sound, SpecialCharacters, SplineItem, SplineItems, Spread, State, Story, String, StrokeAlignment, StrokeCornerAdjustment, StrokeStyle, StrokeTransparencySetting, Swatch, Tables, TextBox, TextBoxes, TextColumns, TextFrame, TextFrameContents, TextFramePreference, TextFrames, TextPath, TextPaths, TextStyleRanges, TextVariableInstances, TextWrapPreference, Texts, TimingSetting, TransparencySetting, Words, XMLItem,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
absoluteFlip |
Flip.NONE Flip.HORIZONTAL Flip.VERTICAL Flip.HORIZONTAL_AND_VERTICAL Flip.BOTH |
read/write |
Indicates whether the TextFrame has been flipped independently of its parent object and, if yes, the direction in which the TextFrame was flipped. |
|
absoluteHorizontalScale |
read/write |
The horizontal scale of the TextFrame relative to its containing object. |
|
|
absoluteRotationAngle |
read/write |
The rotation angle of the TextFrame relative to its containing object. (Range: -360 to 360) |
|
|
absoluteShearAngle |
read/write |
The skewing angle of the TextFrame relative to its containing object. (Range: -360 to 360) |
|
|
absoluteVerticalScale |
read/write |
The vertical scale of the TextFrame relative to its containing object. |
|
|
allArticles |
readonly |
The list of all articles this page item is part of |
|
|
allGraphics |
readonly |
Lists all graphics contained by the TextFrame. |
|
|
allPageItems |
readonly |
Lists all page items contained by the TextFrame. |
|
|
allowOverrides |
read/write |
If true, the master page item can be overridden. |
|
|
anchoredObjectSettings |
readonly |
Anchored object settings. |
|
|
animationSettings |
readonly |
The page item animation settings. |
|
|
appliedObjectStyle |
read/write |
The object style applied to the TextFrame. |
|
|
associatedXMLElement |
readonly |
The XML element associated with the TextFrame. |
|
|
baselineFrameGridOptions |
readonly |
Baseline frame grid option settings. |
|
|
bottomLeftCornerOption |
CornerOptions.NONE CornerOptions.ROUNDED_CORNER CornerOptions.INVERSE_ROUNDED_CORNER CornerOptions.INSET_CORNER CornerOptions.BEVEL_CORNER CornerOptions.FANCY_CORNER |
read/write |
The shape to apply to the bottom left corner of rectangular shapes. |
|
bottomLeftCornerRadius |
read/write |
The radius in measurement units of the corner effect applied to the bottom left corner of rectangular shapes |
|
|
bottomRightCornerOption |
CornerOptions.NONE CornerOptions.ROUNDED_CORNER CornerOptions.INVERSE_ROUNDED_CORNER CornerOptions.INSET_CORNER CornerOptions.BEVEL_CORNER CornerOptions.FANCY_CORNER |
read/write |
The shape to apply to the bottom right corner of rectangular shapes. |
|
bottomRightCornerRadius |
read/write |
The radius in measurement units of the corner effect applied to the bottom right corner of rectangular shapes |
|
|
buttons |
readonly |
A collection of buttons. |
|
|
characters |
readonly |
A collection of characters. |
|
|
checkBoxes |
readonly |
A collection of checkboxes. |
|
|
comboBoxes |
readonly |
A collection of comboboxes. |
|
|
contentTransparencySettings |
readonly |
Transparency settings for the content of the TextFrame. |
|
|
contentType |
ContentType.UNASSIGNED ContentType.GRAPHIC_TYPE ContentType.TEXT_TYPE |
read/write |
The type of content that a frame can contain. |
|
contents |
TextFrameContents.PLACEHOLDER_TEXT TextFrameContents.PLACEHOLDER_TEXT_ARABIC TextFrameContents.PLACEHOLDER_TEXT_HEBREW TextFrameContents.PLACEHOLDER_TEXT_CYRILLIC TextFrameContents.PLACEHOLDER_TEXT_GREEK SpecialCharacters.AUTO_PAGE_NUMBER SpecialCharacters.NEXT_PAGE_NUMBER SpecialCharacters.PREVIOUS_PAGE_NUMBER SpecialCharacters.SECTION_MARKER SpecialCharacters.BULLET_CHARACTER SpecialCharacters.COPYRIGHT_SYMBOL SpecialCharacters.DEGREE_SYMBOL SpecialCharacters.ELLIPSIS_CHARACTER SpecialCharacters.FORCED_LINE_BREAK SpecialCharacters.PARAGRAPH_SYMBOL SpecialCharacters.REGISTERED_TRADEMARK SpecialCharacters.SECTION_SYMBOL SpecialCharacters.TRADEMARK_SYMBOL SpecialCharacters.RIGHT_INDENT_TAB SpecialCharacters.INDENT_HERE_TAB SpecialCharacters.EM_DASH SpecialCharacters.EN_DASH SpecialCharacters.DISCRETIONARY_HYPHEN SpecialCharacters.NONBREAKING_HYPHEN SpecialCharacters.END_NESTED_STYLE SpecialCharacters.DOUBLE_LEFT_QUOTE SpecialCharacters.DOUBLE_RIGHT_QUOTE SpecialCharacters.SINGLE_LEFT_QUOTE SpecialCharacters.SINGLE_RIGHT_QUOTE SpecialCharacters.EM_SPACE SpecialCharacters.EN_SPACE SpecialCharacters.FLUSH_SPACE SpecialCharacters.HAIR_SPACE SpecialCharacters.NONBREAKING_SPACE SpecialCharacters.THIN_SPACE SpecialCharacters.FIGURE_SPACE SpecialCharacters.PUNCTUATION_SPACE SpecialCharacters.COLUMN_BREAK SpecialCharacters.FRAME_BREAK SpecialCharacters.PAGE_BREAK SpecialCharacters.ODD_PAGE_BREAK SpecialCharacters.EVEN_PAGE_BREAK SpecialCharacters.FOOTNOTE_SYMBOL SpecialCharacters.LEFT_TO_RIGHT_EMBEDDING SpecialCharacters.RIGHT_TO_LEFT_EMBEDDING SpecialCharacters.POP_DIRECTIONAL_FORMATTING SpecialCharacters.LEFT_TO_RIGHT_OVERRIDE SpecialCharacters.RIGHT_TO_LEFT_OVERRIDE SpecialCharacters.DOTTED_CIRCLE SpecialCharacters.ZERO_WIDTH_JOINER SpecialCharacters.TEXT_VARIABLE SpecialCharacters.SINGLE_STRAIGHT_QUOTE SpecialCharacters.DOUBLE_STRAIGHT_QUOTE SpecialCharacters.DISCRETIONARY_LINE_BREAK SpecialCharacters.ZERO_WIDTH_NONJOINER SpecialCharacters.THIRD_SPACE SpecialCharacters.QUARTER_SPACE SpecialCharacters.SIXTH_SPACE SpecialCharacters.FIXED_WIDTH_NONBREAKING_SPACE SpecialCharacters.HEBREW_MAQAF SpecialCharacters.HEBREW_GERESH SpecialCharacters.HEBREW_GERSHAYIM SpecialCharacters.ARABIC_KASHIDA SpecialCharacters.ARABIC_COMMA SpecialCharacters.ARABIC_SEMICOLON SpecialCharacters.ARABIC_QUESTION_MARK SpecialCharacters.LEFT_TO_RIGHT_MARK SpecialCharacters.RIGHT_TO_LEFT_MARK SpecialCharacters.HEBREW_SOF_PASUK |
read/write |
The contents of the text frame. Can return: String, TextFrameContents enumerator or SpecialCharacters enumerator. |
|
endCap |
EndCap.BUTT_END_CAP EndCap.ROUND_END_CAP EndCap.PROJECTING_END_CAP |
read/write |
The end shape of an open path. |
|
endJoin |
EndJoin.MITER_END_JOIN EndJoin.ROUND_END_JOIN EndJoin.BEVEL_END_JOIN |
read/write |
The corner join applied to the TextFrame. |
|
endTextFrame |
readonly |
The last text frame in the thread. Can return: TextFrame or TextPath. |
|
|
epstexts |
readonly |
EPSTexts |
|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
fillColor |
read/write |
The swatch (color, gradient, tint, or mixed ink) applied to the fill of the TextFrame. . Can also accept: String. |
|
|
fillTint |
Number (range 0 - 100) |
read/write |
The percent of tint to use in the TextFrame's fill color. (To specify a tint percent, use a number in the range of 0 to 100; to use the inherited or overridden value, use -1.) |
|
fillTransparencySettings |
readonly |
Transparency settings for the fill applied to the TextFrame. |
|
|
flip |
Flip.NONE Flip.HORIZONTAL Flip.VERTICAL Flip.HORIZONTAL_AND_VERTICAL Flip.BOTH |
read/write |
The direction in which to flip the printed image. |
|
footnotes |
readonly |
A collection of footnotes. |
|
|
formFields |
readonly |
A collection of form fields. |
|
|
gapColor |
read/write |
The swatch (color, gradient, tint, or mixed ink) applied to the gap of a dashed, dotted, or striped stroke. For information, see stroke type. |
|
|
gapTint |
Number (range 0 - 100) |
read/write |
The tint as a percentage of the gap color. (To specify a tint percent, use a number in the range of 0 to 100; to use the inherited or overridden value, use -1.) |
|
geometricBounds |
read/write |
The bounds of the TextFrame excluding the stroke width, in the format [y1, x1, y2, x2], which give the coordinates of the top-left and bottom-right corners of the bounding box. |
|
|
gradientFillAngle |
read/write |
The angle of a linear gradient applied to the fill of the TextFrame. (Range: -180 to 180) |
|
|
gradientFillLength |
read/write |
The length (for a linear gradient) or radius (for a radial gradient) applied to the fill of the TextFrame. |
|
|
gradientFillStart |
read/write |
The starting point (in page coordinates) of a gradient applied to the fill of the TextFrame, in the format [x, y]. |
|
|
gradientStrokeAngle |
read/write |
The angle of a linear gradient applied to the stroke of the TextFrame. (Range: -180 to 180) |
|
|
gradientStrokeLength |
read/write |
The length (for a linear gradient) or radius (for a radial gradient) applied to the stroke of the TextFrame. |
|
|
gradientStrokeStart |
read/write |
The starting point (in page coordinates) of a gradient applied to the stroke of the TextFrame, in the format [x, y]. |
|
|
graphicLines |
readonly |
A collection of graphic lines. |
|
|
gridData |
readonly |
Default grid properties. Note: Applies to named, layout, and frame (story) grids. |
|
|
groups |
readonly |
A collection of groups. |
|
|
hiddenTexts |
readonly |
A collection of hidden text objects. |
|
|
horizontalLayoutConstraints |
Array of DimensionsConstraints DimensionsConstraints.FIXED_DIMENSION DimensionsConstraints.FLEXIBLE_DIMENSION |
read/write |
The left margin, width, and right margin constraints this item is subject to when using the object-based layout rule. |
|
horizontalScale |
read/write |
The horizontal scaling applied to the TextFrame. |
|
|
id |
readonly |
The unique ID of the TextFrame. |
|
|
index |
readonly |
The index of the TextFrame within its containing object. |
|
|
insertionPoints |
readonly |
A collection of insertion points. |
|
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
itemLayer |
read/write |
The layer that the TextFrame is on. |
|
|
label |
read/write |
A property that can be set to any string. |
|
|
leftLineEnd |
ArrowHead.NONE ArrowHead.SIMPLE_ARROW_HEAD ArrowHead.SIMPLE_WIDE_ARROW_HEAD ArrowHead.TRIANGLE_ARROW_HEAD ArrowHead.TRIANGLE_WIDE_ARROW_HEAD ArrowHead.BARBED_ARROW_HEAD ArrowHead.CURVED_ARROW_HEAD ArrowHead.CIRCLE_ARROW_HEAD ArrowHead.CIRCLE_SOLID_ARROW_HEAD ArrowHead.SQUARE_ARROW_HEAD ArrowHead.SQUARE_SOLID_ARROW_HEAD ArrowHead.BAR_ARROW_HEAD |
read/write |
The arrowhead applied to the start of the path. |
|
lines |
readonly |
A collection of lines. |
|
|
linkedPageItemOptions |
readonly |
Linked Page Item options |
|
|
listBoxes |
readonly |
A collection of listboxes. |
|
|
localDisplaySetting |
DisplaySettingOptions.HIGH_QUALITY DisplaySettingOptions.TYPICAL DisplaySettingOptions.OPTIMIZED DisplaySettingOptions.DEFAULT_VALUE |
read/write |
Display performance options for the TextFrame. |
|
locked |
read/write |
If true, the TextFrame is locked. |
|
|
miterLimit |
Number (range 1 - 500) |
read/write |
The limit of the ratio of stroke width to miter length before a miter (pointed) join becomes a bevel (squared-off) join. |
|
multiStateObjects |
readonly |
A collection of multi-state objects. |
|
|
name |
read/write |
The name of the TextFrame. |
|
|
nextTextFrame |
NothingEnum.NOTHING |
read/write |
The next text frame in the thread. Can return: TextFrame or TextPath. Can also accept: NothingEnum enumerator. |
|
nonprinting |
read/write |
If true, the TextFrame does not print. |
|
|
notes |
readonly |
A collection of notes. |
|
|
objectExportOptions |
readonly |
Export options for the object |
|
|
ovals |
readonly |
A collection of ellipses. |
|
|
overflows |
readonly |
If true, the story has overset text. |
|
|
overprintFill |
read/write |
If true, the TextFrame's fill color overprints any underlying objects. If false, the fill color knocks out the underlying colors. |
|
|
overprintGap |
read/write |
If true, the gap color overprints any underlying colors. If false, the gap color knocks out the underlying colors. |
|
|
overprintStroke |
read/write |
If true, the TextFrame's stroke color overprints any underlying objects. If false, the stroke color knocks out the underlying colors. |
|
|
overridden |
readonly |
If true, the object originated on a master spread and was overridden. If false, the object either originated on a master spread and was not overridden, or the object did not originate on a master page. |
|
|
overriddenMasterPageItem |
readonly |
An object that originated on a master page and has been overridden. Can return: PageItem, Guide, Graphic, Movie or Sound. |
|
|
pageItems |
readonly |
The page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type. |
|
|
paragraphs |
readonly |
A collection of paragraphs. |
|
|
parent |
readonly |
The parent of the TextFrame (a Snippet, ComboBox, ListBox, TextBox, SignatureField, Spread, MasterSpread, SplineItem, Polygon, GraphicLine, Rectangle, Oval, Group, State, Character or PlaceGun). |
|
|
parentPage |
readonly |
The page on which this page item appears. |
|
|
parentStory |
readonly |
The story that contains the text. |
|
|
paths |
readonly |
A collection of paths. |
|
|
polygons |
readonly |
A collection of polygons. |
|
|
preferences |
readonly |
A collection of preferences objects. |
|
|
previousTextFrame |
NothingEnum.NOTHING |
read/write |
The previous text frame in the thread. Can return: TextFrame or TextPath. Can also accept: NothingEnum enumerator. |
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
radioButtons |
readonly |
A collection of radio buttons. |
|
|
rectangles |
readonly |
A collection of rectangles. |
|
|
rightLineEnd |
ArrowHead.NONE ArrowHead.SIMPLE_ARROW_HEAD ArrowHead.SIMPLE_WIDE_ARROW_HEAD ArrowHead.TRIANGLE_ARROW_HEAD ArrowHead.TRIANGLE_WIDE_ARROW_HEAD ArrowHead.BARBED_ARROW_HEAD ArrowHead.CURVED_ARROW_HEAD ArrowHead.CIRCLE_ARROW_HEAD ArrowHead.CIRCLE_SOLID_ARROW_HEAD ArrowHead.SQUARE_ARROW_HEAD ArrowHead.SQUARE_SOLID_ARROW_HEAD ArrowHead.BAR_ARROW_HEAD |
read/write |
The arrowhead applied to the end of the path. |
|
rotationAngle |
read/write |
The rotatation angle of the TextFrame. (Range: -360 to 360) |
|
|
shearAngle |
read/write |
The skewing angle applied to the TextFrame. (Range: -360 to 360) |
|
|
signatureFields |
readonly |
A collection of signature fields. |
|
|
splineItems |
readonly |
The spline items collection. |
|
|
startTextFrame |
readonly |
The first text frame in the thread. Can return: TextFrame or TextPath. |
|
|
strokeAlignment |
StrokeAlignment.CENTER_ALIGNMENT StrokeAlignment.INSIDE_ALIGNMENT StrokeAlignment.OUTSIDE_ALIGNMENT |
read/write |
The stroke alignment applied to the TextFrame. |
|
strokeColor |
read/write |
The swatch (color, gradient, tint, or mixed ink) applied to the stroke of the TextFrame. Can also accept: String. |
|
|
strokeCornerAdjustment |
StrokeCornerAdjustment.NONE StrokeCornerAdjustment.DASHES StrokeCornerAdjustment.GAPS StrokeCornerAdjustment.DASHES_AND_GAPS |
read/write |
The corner adjustment applied to the TextFrame. |
|
strokeDashAndGap |
read/write |
The dash and gap measurements that define the pattern of a custom dashed line. Define up to six values (in points) in the format [dash1, gap1, dash2, gap2, dash3, gap3]. |
|
|
strokeTint |
Number (range 0 - 100) |
read/write |
The percent of tint to use in object's stroke color. (To specify a tint percent, use a number in the range of 0 to 100; to use the inherited or overridden value, use -1.) |
|
strokeTransparencySettings |
readonly |
Transparency settings for the stroke. |
|
|
strokeType |
read/write |
The name of the stroke style to apply. Can also accept: String. |
|
|
strokeWeight |
read/write |
The weight (in points) to apply to the TextFrame's stroke. |
|
|
tables |
readonly |
A collection of tables. |
|
|
textBoxes |
readonly |
A collection of text boxes. |
|
|
textColumns |
readonly |
A collection of text columns. |
|
|
textFrameIndex |
readonly |
The index of the text frame within the story. |
|
|
textFramePreferences |
readonly |
Text frame preference settings. |
|
|
textFrames |
readonly |
A collection of text frames. |
|
|
textPaths |
readonly |
A collection of text paths. |
|
|
textStyleRanges |
readonly |
A collection of text style ranges. |
|
|
textVariableInstances |
readonly |
A collection of text variable instances. |
|
|
textWrapPreferences |
readonly |
The text wrap preference properties that define the default formatting for wrapping text around objects. |
|
|
texts |
readonly |
A collection of text objects. |
|
|
timingSettings |
readonly |
The object timing settings. |
|
|
topLeftCornerOption |
CornerOptions.NONE CornerOptions.ROUNDED_CORNER CornerOptions.INVERSE_ROUNDED_CORNER CornerOptions.INSET_CORNER CornerOptions.BEVEL_CORNER CornerOptions.FANCY_CORNER |
read/write |
The shape to be applied to the top left corner of rectangular shapes and all corners of non-rectangular shapes.Note: corner option differs from end join in which you can set a radius for a corner option, whereas the rounded or beveled effect of an end join depends on the stroke weight. |
|
topLeftCornerRadius |
read/write |
The radius in measurement units of the corner effect applied to the top left corner of rectangular shapes and all corners of non-rectangular shapes |
|
|
topRightCornerOption |
CornerOptions.NONE CornerOptions.ROUNDED_CORNER CornerOptions.INVERSE_ROUNDED_CORNER CornerOptions.INSET_CORNER CornerOptions.BEVEL_CORNER CornerOptions.FANCY_CORNER |
read/write |
The shape to apply to the top right corner of rectangular shapes |
|
topRightCornerRadius |
read/write |
The radius in measurement units of the corner effect applied to the top right corner of rectangular shapes |
|
|
transparencySettings |
readonly |
Transparency settings. |
|
|
verticalLayoutConstraints |
Array of DimensionsConstraints DimensionsConstraints.FIXED_DIMENSION DimensionsConstraints.FLEXIBLE_DIMENSION |
read/write |
The top margin, height, and bottom margin constraints this item is subject to when using the object-based layout rule. |
|
verticalScale |
read/write |
The vertical scaling applied to the TextFrame. |
|
|
visible |
read/write |
If true, the TextFrame is visible. |
|
|
visibleBounds |
read/write |
The bounds of the TextFrame including the stroke width, in the format [y1, x1, y2, x2], which give the coordinates of the top-left and bottom-right corners of the bounding box. |
|
|
words |
readonly |
A collection of words. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
PageItem addPath (with:Array of PageItem)
Creates a new page item by combining the TextFrame with other objects. Deletes the objects if they do not intersect.
undefined applyObjectStyle (using:ObjectStyle, [clearingOverrides:Boolean=Boolean], [clearingOverridesThroughRootObjectStyle:Boolean=Boolean])
Applies the specified object style.
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The object style to apply. |
|
|
clearingOverrides |
If true, clears the TextFrame's existing attributes before applying the style. (Optional) (default: true) |
|
|
clearingOverridesThroughRootObjectStyle |
If true, clears attributes and formatting applied to the TextFrame that are not defined in the object style. (Optional) (default: false) |
BackgroundTask asynchronousExportFile (format:Varies, to:File, [showingOptions:Boolean=Boolean], using:PDFExportPreset, versionComments:String, [forceSave:Boolean=Boolean])
asynchronously exports the object(s) to a file.
|
Parameter |
Type |
Description |
|---|---|---|
|
format |
Varies |
The export format, specified as an enumeration value or as an extension that appears in the Save as type or Format menu in the Export dialog. Can accept: ExportFormat enumerator or String. |
|
to |
The path to the export file. |
|
|
showingOptions |
If true, displays the export options dialog. (Optional) (default: false) |
|
|
using |
The export style. (Optional) |
|
|
versionComments |
The comment for this version. (Optional) |
|
|
forceSave |
If true, forcibly saves a version. (Optional) (default: false) |
undefined autoTag ()
Tag the object or the parent story using default tags defined in XML preference.
undefined bringForward ()
Brings the TextFrame forward one level in its layer.
undefined bringToFront (reference:PageItem)
Brings the TextFrame to the front of its layer or in front of a particular item.
|
Parameter |
Type |
Description |
|---|---|---|
|
reference |
The reference object to bring the object in front of (must have same parent) (Optional) |
Text changeGlyph (reverseOrder:Boolean)
Finds glyphs that match the find what value and replaces the glyphs with the change to value.
|
Parameter |
Type |
Description |
|---|---|---|
|
reverseOrder |
If true, returns the results in reverse order. (Optional) |
Text changeGrep (reverseOrder:Boolean)
Finds text that matches the find what value and replaces the text with the change to value.
|
Parameter |
Type |
Description |
|---|---|---|
|
reverseOrder |
If true, returns the results in reverse order. (Optional) |
PageItem changeObject (reverseOrder:Boolean)
Finds objects that match the find what value and replace the objects with the change to value.
|
Parameter |
Type |
Description |
|---|---|---|
|
reverseOrder |
If true, returns the results in reverse order. (Optional) |
Text changeText (reverseOrder:Boolean)
Finds text that matches the find what value and replaces the text with the change to value.
|
Parameter |
Type |
Description |
|---|---|---|
|
reverseOrder |
If true, returns the results in reverse order. (Optional) |
Text changeTransliterate (reverseOrder:Boolean)
Finds text that matches the find character type value and replaces the text with the change character type value.
|
Parameter |
Type |
Description |
|---|---|---|
|
reverseOrder |
If true, returns the results in reverse order. (Optional) |
undefined clearObjectStyleOverrides ()
Clear overrides for object style
undefined clearTransformations ()
Clears transformations from the TextFrame. Transformations include rotation, scaling, flipping, fitting, and shearing.
Varies contentPlace (pageItems:Array of PageItem, [linkPageItems:Boolean=Boolean], [linkStories:Boolean=Boolean], [mapStyles:Boolean=Boolean], [showingOptions:Boolean=Boolean])
Duplicate an object and place it into the target page item.
|
Parameter |
Type |
Description |
|---|---|---|
|
pageItems |
One or more page items to place or load |
|
|
linkPageItems |
Whether to link pageItems in content placer (if true it will override link stories value) (Optional) (default: false) |
|
|
linkStories |
Whether to link stories in content placer (only applicable for single story, pageItem links will also be created in case of more than one item) (Optional) (default: false) |
|
|
mapStyles |
Whether to map styles in content placer (Optional) (default: false) |
|
|
showingOptions |
Whether to display the link options dialog (Optional) (default: false) |
undefined convertShape (given:ConvertShapeOptions, numberOfSides:Number, insetPercentage:Number, cornerRadius:Number String)
Converts the TextFrame to a different shape.
|
Parameter |
Type |
Description |
|---|---|---|
|
given |
ConvertShapeOptions.CONVERT_TO_RECTANGLE ConvertShapeOptions.CONVERT_TO_ROUNDED_RECTANGLE ConvertShapeOptions.CONVERT_TO_BEVELED_RECTANGLE ConvertShapeOptions.CONVERT_TO_INVERSE_ROUNDED_RECTANGLE ConvertShapeOptions.CONVERT_TO_OVAL ConvertShapeOptions.CONVERT_TO_TRIANGLE ConvertShapeOptions.CONVERT_TO_POLYGON ConvertShapeOptions.CONVERT_TO_LINE ConvertShapeOptions.CONVERT_TO_STRAIGHT_LINE ConvertShapeOptions.CONVERT_TO_OPEN_PATH ConvertShapeOptions.CONVERT_TO_CLOSED_PATH |
The TextFrame's new shape. |
|
numberOfSides |
Number (range 3 - 100) |
The number of sides for the resulting polygon. (Range: 3 to 100) (Optional) |
|
insetPercentage |
Number (range 0 - 100) |
The star inset percentage for the resulting polygon. (Range: 0.0 to 100.0) (Optional) |
|
cornerRadius |
The corner radius of the resulting rectangle. (Optional) |
PageItem createOutlines ([deleteOriginal:Boolean=Boolean])
Converts text to outlines. Each line of text becomes a polygon object. When the converted text is a single letter that has no internal spaces or detached parts, the polygon contains only a single path. Note: To determine whether a font allows the creation of outlines, see allow outlines.
|
Parameter |
Type |
Description |
|---|---|---|
|
deleteOriginal |
If true, deletes the original text. If false, creates the outlines as separate object(s) on top of the text. (Optional) (default: true) |
undefined detach ()
Detaches an overridden master page item from the master page.
PageItem duplicate (to:Varies, by:Array of Number String)
Duplicates the TextFrame at the specified location or offset.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
Varies |
The location of the new TextFrame, specified in coordinates in the format [x, y]. Can accept: Array of 2 Units, Spread, Page or Layer. (Optional) |
|
by |
Amount by which to offset the new TextFrame from the original TextFrame's position. (Optional) |
PageItem excludeOverlapPath (with:Array of PageItem)
Creates a new page item by excluding the overlapping areas of the TextFrame and other objects.
undefined exportFile (format:Varies, to:File, [showingOptions:Boolean=Boolean], using:PDFExportPreset, versionComments:String, [forceSave:Boolean=Boolean])
Exports the object(s) to a file.
|
Parameter |
Type |
Description |
|---|---|---|
|
format |
Varies |
The export format, specified as an enumeration value or as an extension that appears in the Save as type or Format menu in the Export dialog. Can accept: ExportFormat enumerator or String. |
|
to |
The path to the export file. |
|
|
showingOptions |
If true, displays the export options dialog. (Optional) (default: false) |
|
|
using |
The export style. (Optional) |
|
|
versionComments |
The comment for this version. (Optional) |
|
|
forceSave |
If true, forcibly saves a version. (Optional) (default: false) |
String extractLabel (key:String)
Gets the label value associated with the specified key.
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
The key. |
Text findGlyph (reverseOrder:Boolean)
Finds glyphs that match the find what value.
|
Parameter |
Type |
Description |
|---|---|---|
|
reverseOrder |
If true, returns the results in reverse order. (Optional) |
Text findGrep (reverseOrder:Boolean)
Finds text that matches the find what value.
|
Parameter |
Type |
Description |
|---|---|---|
|
reverseOrder |
If true, returns the results in reverse order. (Optional) |
PageItem findObject (reverseOrder:Boolean)
Finds objects that match the find what value.
|
Parameter |
Type |
Description |
|---|---|---|
|
reverseOrder |
If true, returns the results in reverse order. (Optional) |
Text findText (reverseOrder:Boolean)
Finds text that matches the find what value.
|
Parameter |
Type |
Description |
|---|---|---|
|
reverseOrder |
If true, returns the results in reverse order. (Optional) |
Text findTransliterate (reverseOrder:Boolean)
Finds text that matches the find character type value.
|
Parameter |
Type |
Description |
|---|---|---|
|
reverseOrder |
If true, returns the results in reverse order. (Optional) |
undefined fit (given:FitOptions)
Applies the specified fit option to content in a frame.
|
Parameter |
Type |
Description |
|---|---|---|
|
given |
FitOptions.CONTENT_TO_FRAME FitOptions.CENTER_CONTENT FitOptions.PROPORTIONALLY FitOptions.FRAME_TO_CONTENT FitOptions.FILL_PROPORTIONALLY FitOptions.APPLY_FRAME_FITTING_OPTIONS |
The fit option to use. |
undefined flipItem (given:Flip, around:Varies)
Flips the TextFrame.
|
Parameter |
Type |
Description |
|---|---|---|
|
given |
Flip.NONE Flip.HORIZONTAL Flip.VERTICAL Flip.HORIZONTAL_AND_VERTICAL Flip.BOTH |
The axis around which to flip the TextFrame. |
|
around |
Varies |
The point around which to flip the TextFrame. Can accept: Array of 2 Units or AnchorPoint enumerator. (Optional) |
TextFrame getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
PageItem intersectPath (with:Array of PageItem)
Creates a new page item by intersecting the TextFrame with other objects. Returns an error if the objects do not intersect.
PageItem makeCompoundPath (with:Array of PageItem)
Creates a compound path by combining the path(s) of the TextFrame with the paths of other objects.
|
Parameter |
Type |
Description |
|---|---|---|
|
with |
The other objects whose paths to include in the new compound path. |
undefined markup (using:XMLElement)
Associates the page item with the specified XML element while preserving existing content.
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The XML element. |
PageItem minusBack (with:Array of PageItem)
Creates a new page item by reverse subtracting the overlapping areas of the TextFrame and other objects.
undefined move (to:Varies, by:Array of Number String)
Moves the TextFrame to a new location. Note: Either the 'to' or 'by' parameter is required; if both parameters are defined, only the to value is used.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
Varies |
The new location of the TextFrame,in the format (x, y). Can accept: Array of 2 Units, Spread, Page or Layer. (Optional) |
|
by |
The amount (in measurement units) to move the TextFrame relative to its current position, in the format (x, y). (Optional) |
Varies override (destinationPage:Page)
Overrides a master page item and places the item on the document page as a new object.
|
Parameter |
Type |
Description |
|---|---|---|
|
destinationPage |
The document page that contains the master page item to override. |
Varies place (fileName:File, [showingOptions:Boolean=Boolean], withProperties:Object)
Places the file.
|
Parameter |
Type |
Description |
|---|---|---|
|
fileName |
The file to place |
|
|
showingOptions |
Whether to display the import options dialog (Optional) (default: false) |
|
|
withProperties |
Initial values for properties of the placed object(s) (Optional) |
Story placeAndLink (parentStory:Story, [showingOptions:Boolean=Boolean])
Deprecated: Use contentPlace method. Original Description: Create a linked story and place it into the target page item.
|
Parameter |
Type |
Description |
|---|---|---|
|
parentStory |
The story to place and link from. |
|
|
showingOptions |
Whether to display the link options dialog (Optional) (default: false) |
undefined placeXML (using:XMLElement)
Places XML content into the specified object. Note: Replaces any existing content.
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The XML element whose content you want to place. |
undefined recompose ()
Recomposes the text in the TextFrame.
undefined redefineScaling (to:Array of Number)
Apply an item's scaling to its content if possible.
|
Parameter |
Type |
Description |
|---|---|---|
|
to |
The scale factors to be left on the item. The default is {1.0, 1.0}. (Optional) |
undefined reframe (in:Varies, opposingCorners:Array of Varies)
Move the bounding box of the page item
|
Parameter |
Type |
Description |
|---|---|---|
|
in |
Varies |
The bounding box to resize. Can accept: CoordinateSpaces enumerator or Ordered array containing coordinateSpace:CoordinateSpaces enumerator, boundsKind:BoundingBoxLimits enumerator. |
|
opposingCorners |
Array of Varies |
Opposing corners of new bounding box in the given coordinate space |
PageItem releaseCompoundPath ()
Releases a compound path.
undefined remove ()
Deletes the TextFrame.
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined removeOverride ()
Removes the override from a previously overridden master page item.
undefined resize (in:Varies, from:Varies, by:ResizeMethods, values:Array of Varies, [resizeIndividually:Boolean=Boolean], [consideringRulerUnits:Boolean=Boolean])
Resize the page item.
|
Parameter |
Type |
Description |
|---|---|---|
|
in |
Varies |
The bounding box to resize. Can accept: CoordinateSpaces enumerator, BoundingBoxLimits enumerator or Ordered array containing coordinateSpace:CoordinateSpaces enumerator, boundsKind:BoundingBoxLimits enumerator. |
|
from |
Varies |
The transform origin. Legal specifications: relative to bounding box: anchor | {anchor | {x,y}, bounds kind [, coordinate space]}; relative to coordinate space: {x,y} | {{x,y}[, coordinate space]}; relative to layout window ruler: {{x,y}, page index | bounds kind}. Can accept: Array of 2 Reals, AnchorPoint enumerator or Array of Arrays of 2 Reals, CoordinateSpaces enumerators, AnchorPoint enumerators, BoundingBoxLimits enumerators or Long Integers. |
|
by |
ResizeMethods.ADDING_CURRENT_DIMENSIONS_TO ResizeMethods.MULTIPLYING_CURRENT_DIMENSIONS_BY ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH ResizeMethods.RESHAPING_AREA_TO_RATIO ResizeMethods.RESHAPING_BORDER_TO_RATIO |
How the current dimensions are affected by the given values |
|
values |
Array of Varies |
The width and height values. Legal dimensions specifications: {x, y [, coordinate space]}, {x, resize constraint [, coordinate space]}, or {resize constraint, y [, coordinate space]}; where x and y are real numbers and coordinate space is used to determine _only_ the unit of length for x and y; coordinate space is ignored for the 'current dimensions times' resize method). Can accept: Array of Reals, ResizeConstraints enumerators or CoordinateSpaces enumerators. |
|
resizeIndividually |
If false and multiple page items are targeted, the new dimensions are attained only by moving the individual items rather than resizing them. (Optional) (default: true) |
|
|
consideringRulerUnits |
If true then a ruler location is interpreted using ruler units rather than points. The default value is false. This parameter has no effect unless the reference point is specified relative to a page. (Optional) (default: false) |
Varies resolve (location:Varies, in:CoordinateSpaces, [consideringRulerUnits:Boolean=Boolean])
Get the coordinates of the given location in the specified coordinate system.
|
Parameter |
Type |
Description |
|---|---|---|
|
location |
Varies |
The location requested. Can accept: Array of 2 Reals, AnchorPoint enumerator or Array of Arrays of 2 Reals, CoordinateSpaces enumerators, AnchorPoint enumerators, BoundingBoxLimits enumerators or Long Integers. |
|
in |
CoordinateSpaces.PASTEBOARD_COORDINATES CoordinateSpaces.PARENT_COORDINATES CoordinateSpaces.INNER_COORDINATES CoordinateSpaces.PAGE_COORDINATES CoordinateSpaces.SPREAD_COORDINATES |
The coordinate space to use. |
|
consideringRulerUnits |
If true then a ruler location is interpreted using ruler units rather than points. The default value is false. This parameter has no effect unless the reference point is specified relative to a page. (Optional) (default: false) |
undefined select ([existingSelection:SelectionOptions=SelectionOptions])
Selects the object.
|
Parameter |
Type |
Description |
|---|---|---|
|
existingSelection |
SelectionOptions.ADD_TO SelectionOptions.REMOVE_FROM SelectionOptions.REPLACE_WITH SelectionOptions.SET_KEY |
The selection status of the TextFrame in relation to previously selected objects. (Optional) (default: SelectionOptions.REPLACE_WITH) |
undefined sendBackward ()
Sends the TextFrame back one level in its layer.
undefined sendToBack (reference:PageItem)
Sends the TextFrame to the back of its layer or behind a particular item (must have same parent).
|
Parameter |
Type |
Description |
|---|---|---|
|
reference |
The reference object to send the object behind (Optional) |
Asset store (using:Library, withProperties:Object)
Stores the object in the specified library.
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
The library in which to store the object. |
|
|
withProperties |
Initial values for properties of the new TextFrame (Optional) |
PageItem subtractPath (with:Array of PageItem)
Creates a new page item by subtracting the overlapping areas of the TextFrame and other objects.
String toSource ()
Generates a string which, if executed, will return the TextFrame.
String toSpecifier ()
Retrieves the object specifier.
undefined transform (in:CoordinateSpaces, from:Varies, withMatrix:Varies, replacingCurrent:Varies, [consideringRulerUnits:Boolean=Boolean])
Transform the page item.
|
Parameter |
Type |
Description |
|---|---|---|
|
in |
CoordinateSpaces.PASTEBOARD_COORDINATES CoordinateSpaces.PARENT_COORDINATES CoordinateSpaces.INNER_COORDINATES CoordinateSpaces.PAGE_COORDINATES CoordinateSpaces.SPREAD_COORDINATES |
The coordinate space to use |
|
from |
Varies |
The temporary origin during the transformation. Can accept: Array of 2 Reals, AnchorPoint enumerator or Array of Arrays of 2 Reals, CoordinateSpaces enumerators, AnchorPoint enumerators, BoundingBoxLimits enumerators or Long Integers. |
|
withMatrix |
Varies |
Transform matrix. Can accept: Array of 6 Reals or TransformationMatrix. |
|
replacingCurrent |
Varies |
Transform components to consider; providing this optional parameter causes the target's existing transform components to be replaced with new values. Without this parameter, the given matrix is concatenated onto the target's existing transform combining the effect of the two. Can accept: MatrixContent enumerator, Array of MatrixContent enumerators or Long Integer. (Optional) |
|
consideringRulerUnits |
If true then a ruler based origin is interpreted using ruler units rather than points. The default value is false. This parameter has no effect unless the reference point is specified relative to a page. (Optional) (default: false) |
String transformAgain ()
Transforms the TextFrame using the last transformation performed on any object. Transformations include moving, rotating, shearing, scaling, and flipping.
String transformAgainIndividually ()
Transforms the TextFrame using the last transformation performed on any TextFrame. Transformations include moving, rotating, shearing, scaling, and flipping.
String transformSequenceAgain ()
Transforms the TextFrame using the last sequence of transform operations performed on any single object or performed at the same time on any group of objects. Transformations include moving, rotating, shearing, scaling, and flipping.
String transformSequenceAgainIndividually ()
Transforms the TextFrame using the last sequence of transformations performed on any single object or performed at the same time on any group of objects. Transformations include moving, rotating, shearing, scaling, and flipping.
TransformationMatrix transformValuesOf (in:CoordinateSpaces)
Get the transformation values of the page item.
|
Parameter |
Type |
Description |
|---|---|---|
|
in |
CoordinateSpaces.PASTEBOARD_COORDINATES CoordinateSpaces.PARENT_COORDINATES CoordinateSpaces.INNER_COORDINATES CoordinateSpaces.PAGE_COORDINATES CoordinateSpaces.SPREAD_COORDINATES |
The coordinate space to use |
TextFrame.startTextFrame
TextPath.startTextFrame
TextFrame.endTextFrame
TextPath.endTextFrame
TextFrame.nextTextFrame
TextPath.nextTextFrame
AnchoredObjectSetting.parent
AnimationSetting.parent
BaselineFrameGridOption.parent
Character.parent
ContentTransparencySetting.parent
Event.parent
EventListener.parent
FillTransparencySetting.parent
Footnote.parent
GridDataInformation.parent
HiddenText.parent
InsertionPoint.parent
Line.parent
LinkedPageItemOption.parent
MutationEvent.parent
Note.parent
ObjectExportOption.parent
Paragraph.parent
Path.parent
Preference.parent
StrokeTransparencySetting.parent
Table.parent
Text.parent
TextColumn.parent
TextFramePreference.parent
TextPath.parent
TextStyleRange.parent
TextVariableInstance.parent
TextWrapPreference.parent
TimingSetting.parent
TransparencySetting.parent
Word.parent
TextFrame.previousTextFrame
TextPath.previousTextFrame
TextFrames.[]()