Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / June 2006

Tip: Looking for answers? Try searching our database.

Expanding TextSelection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WALDO - 06 Jun 2006 19:38 GMT
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

Carlos J. Quintero [VB MVP] - 07 Jun 2006 09:33 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.