... including URL and other Internet Web site references, is subject to change. without notice. ... does not give you any license to these patents, tr
Document source : download.microsoft.com
Text Suite
430
Use spelling error index, where index is the index number, to return a single spelling error
(represented by a text range object). The following example finds the second spelling error in the
selection and then selects it.
set myRange to spelling error 2 of text object of selection
select myRange
Remarks
If all the words in the document or range are spelled correctly, using the count command for
the spelling errors list returns 0 (zero) and the spelling checked property of the text range
returns True.
Properties
<Inheritance> text range
Inherits the properties and elements of the text range class.
Class: text range
Plural
ranges
Elements
character
word
sentence
table
footnote
endnote
Word comment
cell
section
paragraph
field
form field
frame
bookmark
revision
hyperlink object
paragraph
subdocument
column
row
shape
readability statistic
grammatical error
spelling error
inline shape
Represents a contiguous area in a document. Each text range object is defined by a starting and
ending character position. Similar to the way bookmarks are used in a document, text range objects
are used to identify specific portions of a document. However, unlike a bookmark, a text range
object exists only while the procedure that defined it is running.
Note text range objects are independent of the selection. That is, you can define and manipulate a range
without changing the selection. You can also define multiple ranges in a document, while there can be only
one selection per pane.
To return a text range object defined by the given starting and ending character positions, use the
set range
command. The following example returns a text range object that refers to the first 10
characters in the active document.
set myRange to set range text object of active document start 0 end 10
Summary :
Text Suite 430 Use spelling error index, where index is the index number, to return a single spelling error (represented by a text range object). set myRange to spelling error 2 of text object of selection select myRange Remarks If all the words in the document or range are spelled correctly, using the count command for the spelling errors list returns 0 (zero) and the spelling checked property of the text range returns True.
Tags :
object,document,spelling,error,selection,set,character,index,myrange,defined,returns,actie,field