在word文档中查找范围内的匹配项(Find match in a range in word document)
如果范围内有2个匹配项,有没有办法在指定范围内找到下一个匹配项。 或者如果有任何方法可以获得所有比赛的列表。 目前我使用下面的互操作方法来查找匹配但它只会突出显示第一个匹配。
bool found = foundRange.Find.Execute(ref oFindText, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
谢谢。
is there any way to find a next match in a specified range if there are 2 matches in the range. or if there is any way to get a list of all the matches. currently I am using the below interop method to find the match but it will highlight only the first match.
bool found = foundRange.Find.Execute(ref oFindText, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
Thank you.
原文:https://stackoverflow.com/questions/43039110
更新时间:2022-07-24 06:07