Another method (that I use):

Spell check the text using the "text" property, for each word, save the
formating of the old word using TextFormat, insert the corrected word into
the place of the old word, then reapply the TextFormat object to the
replaced word.  It's a little bit more complicated depending on the exact
implementation.  If you spell check the text once and then start changing
words, the location of later words will change, but that's pretty easy to
fix by just keeping track of an offset.  If a word has multiple formats the
TextFormat object will only pick up the formatting that is consistent
throughout the entire word.  How you handle this is a up to you.



On 3/28/07, jmfillman <[EMAIL PROTECTED]> wrote:

  Ultimately I'm wanting to find each word to check the spelling, while
maintaining the HTML formatting of the TextArea. Using the text would
be far easier, but I loose the formatting.

Reply via email to