I notice that IEditorSearchOptions does not have ability to control CanWrap options.This makes it harder to use IEditorViewSearcher.Search.
The closest way to control wrapping capability is to use
editor.ActiveView.CurrentSnapshot.FindNext(searchOptions, selection.FirstOffset /*may need to tinker a little for search up/down */, CanWrap);
Is there better alternative?
Thanks in advance.
[Modified 5 years ago]