Row

A table row.

Methods:

createOutlines, merge, redistribute, remove, search, select, split, unmerge

Objects:

Boolean, Cells, Columns, FirstBaseline, Number, Object, RowTypes, Rows, StartParagraph, String, StrokeStyle, Swatch, VerticalJustification

Property Listing

Property

Type

Access

Description

autoGrow

Boolean

read/write

If true, the height of the cell or the cells in the Row can increase or decrease automatically to fit cell content. Note: Allows cells to grow or shrink to the maximum or minimum height, if specified.

bottomEdgeStrokeColor

Swatch

read/write

The swatch (color, gradient, tint, or mixed ink) applied to the bottom edge border stroke.

bottomEdgeStrokeGapColor

Swatch

read/write

The swatch (color, gradient, tint, or mixed ink) applied to the gap of the bottom edge border stroke. Note: Not valid when bottom edge stroke type is solid.

bottomEdgeStrokeGapOverprint

Boolean

read/write

If true, the gap color of the bottom edge border stroke will overprint. Note: Not valid when bottom edge stroke type is solid.

bottomEdgeStrokeGapTint

Number (range 0 - 100)

read/write

The tint (as a percentage) of the bottom edge border stroke gap color. (Range: 0 to 100) Note: Not valid when bottom edge stroke type is solid.

bottomEdgeStrokeOverprint

Boolean

read/write

If true, the bottom edge border stroke will overprint.

bottomEdgeStrokeTint

Number

read/write

The tint (as a percentage) of the bottom edge border stroke.

bottomEdgeStrokeType

StrokeStyle

read/write

The stroke type of the bottom edge

bottomEdgeStrokeWeight

Number

String

read/write

The stroke weight of the bottom edge border stroke.

bottomInset

Number

String

read/write

The bottom inset of the cell.

cells

Cells Cell

readonly

A collection of table cells.

clipContentToCell

Boolean

read/write

If true, clips the cell's content to width and height of the cell.

columnSpan

Number

readonly

The number of columns that the object spans.

columns

Columns Column

readonly

A collection of table columns.

contents

String

SpecialCharactersCanalsoaccept:NothingEnum

read/write

The cell's text contents. Can return: String or SpecialCharacters enumerator. Can also accept: NothingEnum enumerator.

diagonalLineInFront

Boolean

read/write

If true, draws the diagonal line in front of cell contents.

diagonalLineStrokeColor

Swatch

read/write

The diagonal line color, specified as a swatch.

diagonalLineStrokeGapColor

Swatch

read/write

The swatch (color, gradient, tint, or mixed ink) applied to the gap of the diagonal line stroke. Note: Not valid when diagonal line stroke type is solid.

diagonalLineStrokeGapOverprint

Boolean

read/write

If true, the stroke gap of the diagonal line will overprint. Note: Not valid when diagonal line stroke type is solid.

diagonalLineStrokeGapTint

Number

read/write

The tint (as a percentage) of the diagonal line stroke gap color. Note: Not valid when diagonal line stroke type is solid.

diagonalLineStrokeOverprint

Boolean

read/write

If true, the diagonal line stroke will overprint.

diagonalLineStrokeTint

Number (range 0 - 100)

read/write

The diagonal line tint (as a percentage). (Range: 0 to 100)

diagonalLineStrokeType

StrokeStyle

read/write

The diagonal line stroke type.

diagonalLineStrokeWeight

Number

String

read/write

The diagonal line stroke weight.

fillColor

Swatch

String

read/write

The swatch (color, gradient, tint, or mixed ink) applied to the fill of the object. Can also accept: String.

fillTint

Number

read/write

The tint (as a percentage) of the fill of the object.

firstBaselineOffset

FirstBaseline

FirstBaseline.ASCENT_OFFSET

FirstBaseline.CAP_HEIGHT

FirstBaseline.EMBOX_HEIGHT

FirstBaseline.FIXED_HEIGHT

FirstBaseline.LEADING_OFFSET

FirstBaseline.X_HEIGHT

read/write

The distance between the baseline of the text and the top inset of the cell.

gradientFillAngle

Number

read/write

The angle of a linear gradient applied to the fill of the object. (Range: -180 to 180)

gradientFillLength

Number

read/write

The length (of a linear gradient) or radius (of a radial gradient) applied to the fill of the object.

gradientFillStart

Array of Number

Array of String

read/write

The starting point (in page coordinates) of a gradient applied to the fill of the object, in the format [x, y].

height

Number

String

read/write

The height of the Row. For a table or column, specifies the sum of the row heights.

index

Number

readonly

The index of the Row within its containing object.

innerColumnStrokeColor

Swatch

read/write

The color, specified as a swatch, of the inner column border stroke.

innerColumnStrokeGapColor

Swatch

read/write

The swatch (color, gradient, tint, or mixed ink) applied to the gap of the inner column border stroke. Note: Not valid when inner column stroke type is solid.

innerColumnStrokeGapOverprint

Boolean

read/write

If true, the gap color of the inner column border stroke will overprint. Note: Not valid when inner column stroke type is solid.

innerColumnStrokeGapTint

Number (range 0 - 100)

read/write

The tint (as a percentage) of the inner column border stroke gap color. (Range: 0 to 100) Note: Not valid when inner column stroke type is solid.

innerColumnStrokeOverprint

Boolean

read/write

If true, the inner column border stroke will overprint.

innerColumnStrokeTint

Number (range 0 - 100)

read/write

The tint (as a percentage) of the inner column border stroke. (Range: 0 to 100)

innerColumnStrokeType

StrokeStyle

read/write

The stroke type of the inner column border stroke.

innerColumnStrokeWeight

Number

String

read/write

The stroke weight of the inner column border stroke.

innerRowStrokeColor

Swatch

read/write

The color, specified as a swatch, of the inner row border stroke.

innerRowStrokeGapColor

Swatch

read/write

The swatch (color, gradient, tint, or mixed ink) applied to the gap of the inner row border stroke. Note: Not valid when inner row stroke type is solid.

innerRowStrokeGapOverprint

Boolean

read/write

If true, the gap color of the inner row border stroke will overprint. Note: Not valid when inner row stroke type is solid.

innerRowStrokeGapTint

Number (range 0 - 100)

read/write

The tint (as a percentage) of the inner row border stroke. (Range: 0 to 100) Note: Not valid when inner row stroke type is solid.

innerRowStrokeOverprint

Boolean

read/write

If true, the inner row border stroke will overprint.

innerRowStrokeTint

Number (range 0 - 100)

read/write

The tint (as a percentage) of the inner row border stroke. (Range: 0 to 100)

innerRowStrokeType

StrokeStyle

read/write

The stroke type of the inner row

innerRowStrokeWeight

Number

String

read/write

The stroke weight of the inner row border strokes.

keepWithNextRow

Boolean

read/write

If true, keeps the row with the next row when the table is split across text frames or pages.

leftEdgeStrokeColor

Swatch

read/write

The swatch (color, gradient, tint, or mixed ink) applied to the left edge border stroke.

leftEdgeStrokeGapColor

Swatch

read/write

The swatch (color, gradient, tint, or mixed ink) applied to the gap of the left edge border stroke. Note: Not valid when left edge stroke type is solid.

leftEdgeStrokeGapOverprint

Boolean

read/write

If true, the gap color of the left edge border stroke will overprint. Note: Not valid when left edge stroke type is solid.

leftEdgeStrokeGapTint

Number (range 0 - 100)

read/write

The tint (as a percentage) of the left edge border stroke gap color. (Range: 0 to 100) Note: Not valid when left edge stroke type is solid.

leftEdgeStrokeOverprint

Boolean

read/write

If true, the left edge border stroke will overprint.

leftEdgeStrokeTint

Number (range 0 - 100)

read/write

The tint (as a percentage) of the left edge border stroke. (Range: 0 to 100)

leftEdgeStrokeType

StrokeStyle

read/write

The stroke type of the left edge border stroke.

leftEdgeStrokeWeight

Number

String

read/write

The stroke weight of the left edge border stroke.

leftInset

Number

String

read/write

The left inset of the cell.

maximumHeight

Number

String

read/write

The maximum height to which cells in the Row may grow. Note: The maximum height cannot be exceeded even when auto grow is set to true. Also, the maximum height can affect redistribution.

minimumFirstBaselineOffset

Number

String

read/write

The minimum distance in points between the baseline of the text and the top inset of the frame or cell

minimumHeight

Number

String

read/write

The minimum height of the cells in the Row. Note: When auto grow is true, cells can automatically grow larger than this amount when content is added. Also, the minimum height can affect redistribution.

name

String

readonly

The name of the Row.

overflows

Boolean

readonly

If true, the story has overset text.

overprintFill

Boolean

read/write

If true, the fill of the object will overprint.

paragraphSpacingLimit

Number

String

read/write

The maximum space that can be added between paragraphs in a cell. Note: Valid only when vertical justification is justified.

parent

Cell

Column

Row

Table

readonly

The parent of the Row (a Table, Cell, Column or Row).

parentColumn

Column

readonly

The parent column of the cell.

parentRow

Row

readonly

The parent row of the cell.

properties

Object

read/write

A property that allows setting of several properties at the same time.

rightEdgeStrokeColor

Swatch

read/write

The color, specified as a swatch, of the right edge border stroke.

rightEdgeStrokeGapColor

Swatch

read/write

The swatch (color, gradient, tint, or mixed ink) applied to the gap of the right edge border stroke. Note: Not valid when right edge stroke type is solid.

rightEdgeStrokeGapOverprint

Boolean

read/write

If true, the gap color of the right edge border stroke will overprint. Note: Not valid when right edge stroke type is solid.

rightEdgeStrokeGapTint

Number (range 0 - 100)

read/write

The tint (as a percentage) of the right edge border stroke gap color. (Range: 0 to 100) Note: Not valid when right edge stroke type is solid.

rightEdgeStrokeOverprint

Boolean

read/write

If true, the right edge border stroke will overprint.

rightEdgeStrokeTint

Number (range 0 - 100)

read/write

The tint (as a percentage) of the right edge border stroke. (Range: 0 to 100)

rightEdgeStrokeType

StrokeStyle

read/write

The stroke type of the right edge border stroke.

rightEdgeStrokeWeight

Number

String

read/write

The stroke weight of the right edge border stroke.

rightInset

Number

String

read/write

The right inset of the cell.

rotationAngle

Number

read/write

The rotation angle (in degrees) of the cell, specified as one of the following values: 0, 90, 180, or 270.

rowSpan

Number

readonly

The number of rows that the object spans.

rowType

RowTypes

RowTypes.BODY_ROW

RowTypes.FOOTER_ROW

RowTypes.HEADER_ROW

RowTypes.MIXED_STATE

read/write

The row type.

rows

Rows Row

readonly

A collection of table rows.

startRow

StartParagraph

StartParagraph.ANYWHERE

StartParagraph.NEXT_COLUMN

StartParagraph.NEXT_EVEN_PAGE

StartParagraph.NEXT_FRAME

StartParagraph.NEXT_ODD_PAGE

StartParagraph.NEXT_PAGE

read/write

Indicates where to start the row.

textCellRotationFollowsStoryDirection

Boolean

read/write

Whether text cell direction matches the story direction

topEdgeStrokeColor

Swatch

read/write

The swatch (color, gradient, tint, or mixed ink) applied to the top edge border stroke.

topEdgeStrokeGapColor

Swatch

read/write

The swatch (color, gradient, tint, or mixed ink) applied to the gap of the top edge border stroke. Note: Not valid when top edge stroke type is solid.

topEdgeStrokeGapOverprint

Boolean

read/write

If true, the gap color of the top edge border stroke will overprint. Note: Not valid when top edge stroke type is solid.

topEdgeStrokeGapTint

Number (range 0 - 100)

read/write

The tint (as a percentage) of the top edge border stroke gap color. (Range: 0 to 100) Note: Not valid when top edge stroke type is solid.

topEdgeStrokeOverprint

Boolean

read/write

If true, the top edge border stroke will overprint.

topEdgeStrokeTint

Number (range 0 - 100)

read/write

The tint (as a percentage) of the top edge border stroke. (Range: 0 to 100)

topEdgeStrokeType

StrokeStyle

read/write

The stroke type of the top edge border stroke.

topEdgeStrokeWeight

Number

String

read/write

The stroke weight of the top edge border stroke.

topInset

Number

String

read/write

The top inset of the cell.

topLeftDiagonalLine

Boolean

read/write

If true, draws a diagonal line starting from the top left.

topRightDiagonalLine

Boolean

read/write

If true, draws a diagonal line starting from the top right.

verticalJustification

VerticalJustification

VerticalJustification.BOTTOM_ALIGN

VerticalJustification.CENTER_ALIGN

VerticalJustification.JUSTIFY_ALIGN

VerticalJustification.TOP_ALIGN

read/write

The vertical alignment of cell.

width

Number

String

read/write

The width of the Row. For a table or row, specifies the sum of the column widths.

Method Listing

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

Boolean

If true, deletes the original text. If false, creates the outlines as separate object(s) on top of the text. (Optional)

(default: true)

Cell merge (with:Cell)

Merge cells together

Parameter

Type

Description

with

Cell

The cell to merge with

undefined redistribute (using:HorizontalOrVertical, thru:Varies Cell Column Row)

Redistributes the specified range of Rows so that the Rows have a uniform size. Note: The maximum or minimum height or width specified for some of the cells in the range may prevent them from being exactly even.

Parameter

Type

Description

using

HorizontalOrVertical

HorizontalOrVertical.HORIZONTAL

HorizontalOrVertical.VERTICAL

The direction in which to redistribute.

thru

Cell

Column

Row

The last Row in the range. Can accept: Cell, Column or Row. (Optional)

undefined remove ()

Deletes the Row.

Text search (for:String, wholeWord:Boolean, caseSensitive:Boolean, replacingWith:String, withFindAttributes:Object, withChangeAttributes:Object)

Look for occurrences of text that matches specific criteria

Parameter

Type

Description

for

String

What to look for (Optional)

wholeWord

Boolean

If true, then disregard text embedded within a larger word (Optional)

caseSensitive

Boolean

If true, then search only for text that matches case (Optional)

replacingWith

String

What to replace the found text with, either a string or a special character (Optional)

withFindAttributes

Object

A record of find preference settings to use (Optional)

withChangeAttributes

Object

A record of change preference settings to use (Optional)

undefined select ([existingSelection:SelectionOptions=SelectionOptions])

Select this object.

Parameter

Type

Description

existingSelection

SelectionOptions

SelectionOptions.ADD_TO

SelectionOptions.REMOVE_FROM

SelectionOptions.REPLACE

How to handle the existing selection (Optional)

(default: SelectionOptions.REPLACE)

undefined split (using:HorizontalOrVertical)

Splits the cell along the specified axis.

Parameter

Type

Description

using

HorizontalOrVertical

HorizontalOrVertical.HORIZONTAL

HorizontalOrVertical.VERTICAL

The direction in which to split the cell.

Cell unmerge ()

Unmerges all merged cells in the Row.

Object of

Cell.parent

Column.parent

Row.parent

Cell.parentRow

Column.parentRow

Row.parentRow

Return

Rows.add()