Text Suite
431
Use the text object property to return a text range object defined by the beginning and end of another
object. The text object property applies to many objects (for example, paragraph, bookmark, and
cell). The following example returns a text range object that refers to the first paragraph in the
active document.
set aRange to set range text object of paragraph 1 of active document
The following example returns a text range object that refers to the second through fourth
paragraphs in the active document.
set aRange to set range text object of active document start ¬
(start of content of text object of paragraph 2 of active document) ¬
end (end of content of text object of paragraph 4 of active document)
For more information about working with text range objects, see
working with text range objects
.
Properties
bold
True if the font or range is formatted as bold. Read/write.
bookmark id
Returns the number of the bookmark that encloses the beginning of the specified selection or
range; returns 0 (zero) if there's no corresponding bookmark. The number corresponds to the
position of the bookmark in the document: 1 for the first bookmark, 2 for the second one, and
so on. Read-only.
border options
Returns a
border options
object that represents all the borders for the specified object. Read-
only.
case
Returns or sets the case of the text in the specified range. Read/write.
Can be one of the following:
·
lower case
·
next case
·
title sentence
·
title word
·
toggle case
·
upper case
column options
Returns the
column options
object associated with the table object. Read-only.
content
Returns or sets the text in the specified range or selection. Read/write.