expand()

This method is used to expand the size of the textRange to mathc the unit vlaue passed as a parameter. The values of the parameter may be CHARACTER, WORD, SENTENCE, or TEXTEDIT.

syntax:

expand(units)

This method is used with the following:

textRange