Search and set the cursor as edit point
Posted: Thu May 02, 2019 12:27 pm
I want to find the 'Tag string', then replace the Tag string with Para Bullet. I cannot location the cursor to the "Tag String', any idea?
DOCX.Editor.Selections.Clear;
DOCX.Editor.FindReplace.BeginFind('Tag string');
// What code for the cursor to point at the search tag index?
// Start bullets. The next paragraph added will be a bullet paragraph.
DOCX.Editor.BeginBullet;
// Add paragraphs with bullets.
DOCX.Editor.AppendPara('First bullet row');
DOCX.Editor.AppendPara('Bullet 2');
DOCX.Editor.AppendPara('Bullet 3');
// Stop bullet paragraphs. The next paragraph added will not have a bullet.
DOCX.Editor.EndBulletNumbering;
DOCX.Editor.Selections.Clear;
DOCX.Editor.Selections.Clear;
DOCX.Editor.FindReplace.BeginFind('Tag string');
// What code for the cursor to point at the search tag index?
// Start bullets. The next paragraph added will be a bullet paragraph.
DOCX.Editor.BeginBullet;
// Add paragraphs with bullets.
DOCX.Editor.AppendPara('First bullet row');
DOCX.Editor.AppendPara('Bullet 2');
DOCX.Editor.AppendPara('Bullet 3');
// Stop bullet paragraphs. The next paragraph added will not have a bullet.
DOCX.Editor.EndBulletNumbering;
DOCX.Editor.Selections.Clear;