Text Suite
450
[apply shading Boolean] Optional. True to apply the shading properties of the specified format.
[apply font Boolean] Optional. True to apply the font properties of the specified format.
[apply color Boolean] Optional. True to apply the color properties of the specified format.
[apply heading rows Boolean] Optional. True to apply the headingrow properties of the
specified format.
[apply last row Boolean] Optional. True to apply the lastrow properties of the specified format.
[apply first column Boolean] Optional. True to apply the firstcolumn properties of the
specified format.
[apply last column Boolean] Optional. True to apply the lastcolumn properties of the specified
format.
[auto fit Boolean] Optional. True to decrease the width of the table columns as much as possible
without changing the way text wraps in the cells.
[auto fit behavior enumeration] Optional. Sets the AutoFit rules for how Word sizes a table.
Can be one of the following: auto fit fixed, auto fit content, or auto fit window. If default
table behavior is word8 table behavior, this argument is ignored.
[default table behavior enumeration] Optional. Sets a value that specifies whether Word
automatically resizes cells in a table to fit the contents (AutoFit). Can be one of the following:
word8 table behavior (AutoFit disabled) or word9 table behavior (AutoFit enabled). The
default value is word8 table behavior.
Example
This example converts the first three paragraphs in the active document to a table.
set aDoc to the active document
set myRange to set range text object of aDoc start (start of content of ¬
text object of paragraph 1 of aDoc) end (end of content of text ¬
object of paragraph 3 of aDoc)
convert to table myRange separator separate by paragraphs
This example inserts text at the insertion point and then converts the comma-delimited text to a
table with formatting.
collapse range text object of selection
type text selection text "one, two, three"
type paragraph selection
type text selection text "one, two, three"
type paragraph selection
set myTable to convert to table (text object of active document) separator ¬
separate by commas table format table format list8