跳到主要内容

SearchNext

从当前位置开始查找并选择下一个匹配的文本。

语法

expression.SearchNext(oProperties, isForward);

expression - 表示 Api 类的变量。

参数

名称必需/可选数据类型默认值描述
oProperties必需Object包含搜索字符串的对象。
oProperties.searchString必需string搜索字符串。
oProperties.matchCase可选booleantrue是否区分大小写。
isForward可选booleantrue搜索方向。

返回值

boolean

示例

window.Asc.plugin.executeMethod ("SearchNext", [
{
"searchString": "text",
"matchCase": true
},
true
]);