Posted 16 years ago
by Chris Morris
Version: 4.0.0271
Platform: .NET 2.0
Environment: Windows XP (32-bit)
When selecting partial text in the Syntax editor and using the FindAll method with the SearchInSelection property set to true, it returns all the found instances in the Editor not only those in the currently selected text.
eg. Code in Syntax Editor
line 0: AA
line 1:
line 2: AA
line 3: AA
Where lines 2 and 3 are only selecetd the findResult would find lines 0, 2,3
Same bug for Document.FindReplace.MarkAll.
FindReplaceOptions findReplaceOptions = new FindReplaceOptions();
findReplaceOptions.FindText = "AA";
findReplaceOptions.SearchInSelection = true;
FindReplaceResultSet findResult = editor.Document.FindReplace.FindAll(findReplaceOptions);
line 0: AA
line 1:
line 2: AA
line 3: AA
Where lines 2 and 3 are only selecetd the findResult would find lines 0, 2,3
Same bug for Document.FindReplace.MarkAll.