This is the discussion forum for the HtmlEditor. See also the
HtmlEditor home page, where you can download the control, and the
Documentation Wiki, a collaborative project for documenting the control.
Re: Any Suggestions for Find/Replace
Posted by: Kushan Ratnayake (203.115.18.---)
Date: Thursday, 16-Jan-2003, 04:08:20
Following code shows how you can create and position markup pointers to HTMLDocument (docCtl) body. (in VB.NET)
Dim x As mshtml.IMarkupServices = docCtl
Dim bodyrg As mshtml.IHTMLTxtRange = CType(docCtl.body, mshtml.IHTMLBodyElement).createTextRange()
Dim ps, pe As mshtml.IMarkupPointer
x.CreateMarkupPointer(ps)
x.CreateMarkupPointer(pe)
x.MovePointersToRange(bodyrg, ps, pe)
Refer MSDN article on Introduction to MarkupServices.
Kushan Ratnayake