How do I get the whole word of a text selection. For example, If my
TextSelection object IsEmpty = True, then how can I get the whole word?
Similiar behavior can be found when you simply click on a word in code
(without selecting any characters) and hit Ctrl+F (Find) In the find dialog,
is the entire word.
I have also seen this behavior in Carlos Quintero's MZ Tools when you
perform a search.

Signature
Any help is appreciated.
Thanks in advance.
WALDO
Hi Waldo,
I do it getting creating an EditPoint at the cursor position an moving to
the left and to the right getting characters A-Z, 0-9, etc. until I find a
character not in that character set.
Another approach, not sure if it works, is using EditPoint.WordLeft(1) and
EditPoint.WordRight(1).

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
> How do I get the whole word of a text selection. For example, If my
> TextSelection object IsEmpty = True, then how can I get the whole word?
[quoted text clipped - 5 lines]
> I have also seen this behavior in Carlos Quintero's MZ Tools when you
> perform a search.
WALDO - 07 Jun 2006 14:58 GMT
Thanks Carlos

Signature
Any help is appreciated.
Thanks in advance.
WALDO
> Hi Waldo,
>
[quoted text clipped - 14 lines]
>> I have also seen this behavior in Carlos Quintero's MZ Tools when you
>> perform a search.