Cell
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
allGraphics | Array of Graphic | readonly | Lists all graphics contained by the Cell. |
allPageItems | Array of PageItem | readonly | Lists all page items contained by the Cell. |
appliedCellStyle | CellStyleString | r/w | The cell style applied to the cell. Can also accept: String. |
associatedXMLElement | XMLItem | readonly | The XML element associated with the Cell. |
autoGrow | bool | r/w | If true, the height of the cell or the cells in the Cell 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 | r/w | The swatch (color, gradient, tint, or mixed ink) applied to the bottom edge border stroke. |
bottomEdgeStrokeGapColor | Swatch | r/w | 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 | bool | r/w | 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 | r/w | 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 | bool | r/w | If true, the bottom edge border stroke will overprint. |
bottomEdgeStrokeTint | number | r/w | The tint (as a percentage) of the bottom edge border stroke. |
bottomEdgeStrokeType | String StrokeStyle |
r/w | The stroke type of the bottom edge. Can also accept: String. |
bottomEdgeStrokeWeight | Measurement Unit (Number or String) | r/w | The stroke weight of the bottom edge border stroke. |
bottomInset | Measurement Unit (Number or String) | r/w | The bottom inset of the cell. |
buttons | Buttons Button | readonly | A collection of buttons. |
cells | Cells Cell | readonly | A collection of table cells. |
changes | Changes Change | readonly | A collection of changes. |
characters | Characters Character | readonly | A collection of characters. |
checkBoxes | CheckBoxes | readonly | A collection of checkboxes. |
clipContentToCell | bool | r/w | 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. |
comboBoxes | ComboBoxes | readonly | A collection of comboboxes. |
contents | Array of Strings Array of Strings NothingEnum NothingEnum SpecialCharacters SpecialCharacters SpecialCharacters String |
r/w | The text contents. For rows or columns, when specified as a string, the sting populates each cell in the row or column; when specified as an array, the first value in the array populates the left-most cell in the row or the top-most cell in the column; the next value populates the next cell to the right (for rows) or the next lowest cell (for columns), and so on. Can return: String, SpecialCharacters enumerator or Array of Strings or SpecialCharacters enumerators. Can also accept: NothingEnum enumerator or Array of Strings, SpecialCharacters enumerators or NothingEnum enumerators. |
diagonalLineInFront | bool | r/w | If true, draws the diagonal line in front of cell contents. |
diagonalLineStrokeColor | Swatch | r/w | The diagonal line color, specified as a swatch. |
diagonalLineStrokeGapColor | Swatch | r/w | 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 | bool | r/w | If true, the stroke gap of the diagonal line will overprint. Note: Not valid when diagonal line stroke type is solid. |
diagonalLineStrokeGapTint | number | r/w | The tint (as a percentage) of the diagonal line stroke gap color. Note: Not valid when diagonal line stroke type is solid. |
diagonalLineStrokeOverprint | bool | r/w | If true, the diagonal line stroke will overprint. |
diagonalLineStrokeTint | number | r/w | The diagonal line tint (as a percentage). (Range: 0 to 100) |
diagonalLineStrokeType | String StrokeStyle |
r/w | The stroke type of the diagonal line(s). Can also accept: String. |
diagonalLineStrokeWeight | Measurement Unit (Number or String) | r/w | The diagonal line stroke weight. |
epstexts | EPSTexts EPSText | readonly | EPSTexts |
eventListeners | EventListeners EventListener | readonly | A collection of event listeners. |
events | Events Event | readonly | A collection of events. |
fillColor | String Swatch |
r/w | The swatch (color, gradient, tint, or mixed ink) applied to the fill of the object. Can also accept: String. |
fillTint | number | r/w | The tint (as a percentage) of the fill of the object. |
firstBaselineOffset | FirstBaseline: FirstBaseline.ASCENT_OFFSET FirstBaseline.CAP_HEIGHT FirstBaseline.LEADING_OFFSET FirstBaseline.EMBOX_HEIGHT FirstBaseline.X_HEIGHT FirstBaseline.FIXED_HEIGHT |
r/w | The distance between the baseline of the text and the top inset of the cell. |
formFields | FormFields FormField | readonly | A collection of form fields. |
gradientFillAngle | number | r/w | The angle of a linear gradient applied to the fill of the object. (Range: -180 to 180) |
gradientFillLength | number | r/w | The length (of a linear gradient) or radius (of a radial gradient) applied to the fill of the object. |
gradientFillStart | Array of Measurement Unit (Number or String) | r/w | The starting point (in page coordinates) of a gradient applied to the fill of the Cell, in the format [x, y]. |
graphicLines | GraphicLines GraphicLine | readonly | A collection of graphic lines. |
groups | Groups Group | readonly | A collection of groups. |
height | Measurement Unit (Number or String) | r/w | The height of the Cell. For a table or column, specifies the sum of the row heights. |
hiddenTexts | HiddenTexts HiddenText | readonly | A collection of hidden text objects. |
id | number | readonly | The unique ID of the Cell. |
index | number | readonly | The index of the Cell within its containing object. |
innerColumnStrokeColor | Swatch | r/w | The color, specified as a swatch, of the inner column border stroke. |
innerColumnStrokeGapColor | Swatch | r/w | 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 | bool | r/w | 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 | r/w | 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 | bool | r/w | If true, the inner column border stroke will overprint. |
innerColumnStrokeTint | number | r/w | The tint (as a percentage) of the inner column border stroke. (Range: 0 to 100) |
innerColumnStrokeType | String StrokeStyle |
r/w | The stroke type of the inner column. Can also accept: String. |
innerColumnStrokeWeight | Measurement Unit (Number or String) | r/w | The stroke weight of the inner column border stroke. |
innerRowStrokeColor | Swatch | r/w | The color, specified as a swatch, of the inner row border stroke. |
innerRowStrokeGapColor | Swatch | r/w | 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 | bool | r/w | 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 | r/w | 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 | bool | r/w | If true, the inner row border stroke will overprint. |
innerRowStrokeTint | number | r/w | The tint (as a percentage) of the inner row border stroke. (Range: 0 to 100) |
innerRowStrokeType | String StrokeStyle |
r/w | The stroke type of the inner row. Can also accept: String. |
innerRowStrokeWeight | Measurement Unit (Number or String) | r/w | The stroke weight of the inner row border strokes. |
insertionPoints | InsertionPoints InsertionPoint | readonly | A collection of insertion points. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
keepWithNextRow | bool | r/w | If true, keeps the row with the next row when the table is split across text frames or pages. |
label | string | r/w | A property that can be set to any string. |
leftEdgeStrokeColor | Swatch | r/w | The swatch (color, gradient, tint, or mixed ink) applied to the left edge border stroke. |
leftEdgeStrokeGapColor | Swatch | r/w | 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 | bool | r/w | 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 | r/w | 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 | bool | r/w | If true, the left edge border stroke will overprint. |
leftEdgeStrokeTint | number | r/w | The tint (as a percentage) of the left edge border stroke. (Range: 0 to 100) |
leftEdgeStrokeType | String StrokeStyle |
r/w | The stroke type of the left edge. Can also accept: String. |
leftEdgeStrokeWeight | Measurement Unit (Number or String) | r/w | The stroke weight of the left edge border stroke. |
leftInset | Measurement Unit (Number or String) | r/w | The left inset of the cell. |
lines | Lines Line | readonly | A collection of lines. |
listBoxes | ListBoxes | readonly | A collection of listboxes. |
maximumHeight | Measurement Unit (Number or String) | r/w | The maximum height to which cells in the Cell 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 | Measurement Unit (Number or String) (range: 0 - 8640) | r/w | The space between the baseline of the text and the top inset of the frame or cell. |
minimumHeight | Measurement Unit (Number or String) | r/w | The minimum height of the cells in the Cell. 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. |
multiStateObjects | MultiStateObjects MultiStateObject | readonly | A collection of multi-state objects. |
name | string | readonly | The name of the Cell. |
notes | Notes Note | readonly | A collection of notes. |
ovals | Ovals Oval | readonly | A collection of ellipses. |
overflows | bool | readonly | If true, the story has overset text. |
overprintFill | bool | r/w | If true, the fill of the object will overprint. |
pageItems | PageItems PageItem | 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. |
paragraphSpacingLimit | Measurement Unit (Number or String) | r/w | The maximum space that can be added between paragraphs in a cell. Note: Valid only when vertical justification is justified. |
paragraphs | Paragraphs Paragraph | readonly | A collection of paragraphs. |
parent | Cell Column Row Table XMLElement |
readonly | The parent of the Cell (a XMLElement, Cell, Table, Column or Row). |
parentColumn | Column | readonly | The parent column of the cell. |
parentRow | Row | readonly | The parent row of the cell. |
polygons | Polygons Polygon | readonly | A collection of polygons. |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
radioButtons | RadioButtons RadioButton | readonly | A collection of radio buttons. |
rectangles | Rectangles Rectangle | readonly | A collection of rectangles. |
rightEdgeStrokeColor | Swatch | r/w | The color, specified as a swatch, of the right edge border stroke. |
rightEdgeStrokeGapColor | Swatch | r/w | 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 | bool | r/w | 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 | r/w | 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 | bool | r/w | If true, the right edge border stroke will overprint. |
rightEdgeStrokeTint | number | r/w | The tint (as a percentage) of the right edge border stroke. (Range: 0 to 100) |
rightEdgeStrokeType | String StrokeStyle |
r/w | The stroke type of the right edge. Can also accept: String. |
rightEdgeStrokeWeight | Measurement Unit (Number or String) | r/w | The stroke weight of the right edge border stroke. |
rightInset | Measurement Unit (Number or String) | r/w | The right inset of the cell. |
rotationAngle | number | r/w | 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.HEADER_ROW RowTypes.FOOTER_ROW RowTypes.MIXED_STATE |
r/w | The row type. |
rows | Rows Row | readonly | A collection of table rows. |
signatureFields | SignatureFields SignatureField | readonly | A collection of signature fields. |
splineItems | SplineItems SplineItem | readonly | The spline items collection. |
startRow | StartParagraph: StartParagraph.ANYWHERE StartParagraph.NEXT_COLUMN StartParagraph.NEXT_FRAME StartParagraph.NEXT_PAGE StartParagraph.NEXT_ODD_PAGE StartParagraph.NEXT_EVEN_PAGE |
r/w | Indicates where to start the row. |
tables | Tables Table | readonly | A collection of tables. |
textBoxes | TextBoxes | readonly | A collection of text boxes. |
textColumns | TextColumns TextColumn | readonly | A collection of text columns. |
textFrames | TextFrames TextFrame | readonly | A collection of text frames. |
textStyleRanges | TextStyleRanges TextStyleRange | readonly | A collection of text style ranges. |
textVariableInstances | TextVariableInstances TextVariableInstance | readonly | A collection of text variable instances. |
texts | Texts Text | readonly | A collection of text objects. |
topEdgeStrokeColor | Swatch | r/w | The swatch (color, gradient, tint, or mixed ink) applied to the top edge border stroke. |
topEdgeStrokeGapColor | Swatch | r/w | 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 | bool | r/w | 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 | r/w | 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 | bool | r/w | If true, the top edge border stroke will overprint. |
topEdgeStrokeTint | number | r/w | The tint (as a percentage) of the top edge border stroke. (Range: 0 to 100) |
topEdgeStrokeType | String StrokeStyle |
r/w | The stroke type of the top edge. Can also accept: String. |
topEdgeStrokeWeight | Measurement Unit (Number or String) | r/w | The stroke weight of the top edge border stroke. |
topInset | Measurement Unit (Number or String) | r/w | The top inset of the cell. |
topLeftDiagonalLine | bool | r/w | If true, draws a diagonal line starting from the top left. |
topRightDiagonalLine | bool | r/w | If true, draws a diagonal line starting from the top right. |
verticalJustification | VerticalJustification: VerticalJustification.TOP_ALIGN VerticalJustification.CENTER_ALIGN VerticalJustification.BOTTOM_ALIGN VerticalJustification.JUSTIFY_ALIGN |
r/w | The vertical alignment of cell. |
width | Measurement Unit (Number or String) | r/w | The width of the Cell. For a table or row, specifies the sum of the column widths. |
words | Words Word | readonly | A collection of words. |
writingDirection | HorizontalOrVertical: HorizontalOrVertical.HORIZONTAL HorizontalOrVertical.VERTICAL |
r/w | The direction of the text in the cell. |
Methods
Instances
EventListener addEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Adds an event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
void autoTag ()
Tag the object or the parent story using default tags defined in XML preference.
Array of Text changeGlyph ([reverseOrder:
bool])
Finds glyphs that match the find what value and replaces the glyphs with the change to value.
Parameter | Type | Description |
---|---|---|
reverseOrder | bool | If true, returns the results in reverse order. (Optional) |
Array of Text changeGrep ([reverseOrder:
bool])
Finds text that matches the find what value and replaces the text with the change to value.
Parameter | Type | Description |
---|---|---|
reverseOrder | bool | If true, returns the results in reverse order. (Optional) |
Array of Text changeText ([reverseOrder:
bool])
Finds text that matches the find what value and replaces the text with the change to value.
Parameter | Type | Description |
---|---|---|
reverseOrder | bool | If true, returns the results in reverse order. (Optional) |
Array of Text changeTransliterate ([reverseOrder:
bool])
Finds text that matches the find character type value and replaces the text with the change character type value.
Parameter | Type | Description |
---|---|---|
reverseOrder | bool | If true, returns the results in reverse order. (Optional) |
void clearCellStyleOverrides ([clearingOverridesThroughRootCellStyle:
bool=false])
Clear Cell Style Overrides
Parameter | Type | Description |
---|---|---|
clearingOverridesThroughRootCellStyle | bool | If true, clears all overrides, whether or not they are defined in the underlying cell style (Optional) (default: false) |
void convertBulletsAndNumberingToText ()
Convert bullets and numbering to text.
Array of PageItem createOutlines ([deleteOriginal:
bool=true])
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 | bool | If true, deletes the original text. If false, creates the outlines as separate object(s) on top of the text. (Optional) (default: true) |
string extractLabel (key:
string)
Gets the label value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
Array of Text findGlyph ([reverseOrder:
bool])
Finds glyphs that match the find what value.
Parameter | Type | Description |
---|---|---|
reverseOrder | bool | If true, returns the results in reverse order. (Optional) |
Array of Text findGrep ([reverseOrder:
bool])
Finds text that matches the find what value.
Parameter | Type | Description |
---|---|---|
reverseOrder | bool | If true, returns the results in reverse order. (Optional) |
Array of Text findText ([reverseOrder:
bool])
Finds text that matches the find what value.
Parameter | Type | Description |
---|---|---|
reverseOrder | bool | If true, returns the results in reverse order. (Optional) |
Array of Text findTransliterate ([reverseOrder:
bool])
Finds text that matches the find character type value.
Parameter | Type | Description |
---|---|---|
reverseOrder | bool | If true, returns the results in reverse order. (Optional) |
Array of Cell getElements ()
Resolves the object specifier, creating an array of object references.
void insertLabel (key:
string, value:
string)
Sets the label to the value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
value | string | The value. |
Cell merge ([with:
varies])
Merges the cells.
Parameter | Type | Description |
---|---|---|
with | Cell Column Row | The cell(s) to merge with. Can accept: Cell, Row or Column. (Optional) |
void recompose ()
Recomposes the text in the Cell.
void remove ()
Deletes the Cell.
bool removeEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Removes the event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
void 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. |
string toSource ()
Generates a string which, if executed, will return the Cell.
string toSpecifier ()
Retrieves the object specifier.
Array of Cell unmerge ()
Unmerges all merged cells in the Cell.
Element of
Change.parent
HiddenText.parent
Note.parent
Table.parent
XMLElement.xmlContent
Used in:
Cell Cells.nextItem (obj: Cell)
Cell Cells.previousItem (obj: Cell)
Return
Array of Cell Cell.getElements ()
Cell Cell.merge ([with: varies])
Cell Cells.[] (index: number)
Cell Cells.anyItem ()
Array of Cell Cells.everyItem ()
Cell Cells.firstItem ()
Cell Cells.item (index: varies)
Cell Cells.itemByID (id: number)
Cell Cells.itemByName (name: string)
Array of Cell Cells.itemByRange (from: varies, to: varies)
Cell Cells.lastItem ()
Cell Cells.middleItem ()
Cell Cells.nextItem (obj: Cell)
Cell Cells.previousItem (obj: Cell)
Cell Column.merge ([with: varies])
Array of Cell Column.unmerge ()
Cell Row.merge ([with: varies])
Array of Cell Row.unmerge ()
Array of Cell Table.unmerge ()
Jongware, 28-Apr-2012 v3.0.3i | Contents :: Index |