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 / February 2006

Tip: Looking for answers? Try searching our database.

ReplaceText

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hannes [MVP] - 04 Feb 2006 21:55 GMT
i am searching for a small sample how to change to part of the source code
ein editor,
In detail the part between to search strings.
my idea is to use findtext and set a start and ednd point and have a kind of
selection
then replace this selection with my string
I dindt find how.

thanks for any help

Signature

-Hannes

www.ppedv.de company site
www.devtrain.de community site

Boni - 05 Feb 2006 11:43 GMT
Hi,
You can place an edit point (EditPoint or EditPoint2) into the starting
place and then use Editpoint.ReplaceXXX (where XXX is Text or Pattern). See
MSDN (http://msdn2.microsoft.com/library/ky8x32dh(en-us,vs.80).aspx) for
details.
HIH
Boni

Dim _cnw As EditPoint = _temp.StartPointOf(vsCMPart.vsCMPartWhole)

Dim _cns As EditPoint = _temp.StartPointOf(vsCMPart.vsCMPartName)

_cnw.ReplaceText(_cns, "",
vsEPReplaceTextOptions.vsEPReplaceTextKeepMarkers)

>i am searching for a small sample how to change to part of the source code
>ein editor,
[quoted text clipped - 5 lines]
>
> thanks for any help
Hannes [MVP] - 05 Feb 2006 13:40 GMT
thanks, i already have read this kb article but now it works with

docS.FindText("codeold")

Dim _cnw As EditPoint = docS.TopPoint.CreateEditPoint

...
Signature

-Hannes

www.ppedv.de company site
www.devtrain.de community site

> Hi,
> You can place an edit point (EditPoint or EditPoint2) into the starting
[quoted text clipped - 20 lines]
>>
>> thanks for any help

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.