Skip to main content

SearchNext

Finds and selects the next occurrence of the text starting at the current position.

Syntax

expression.SearchNext(oProperties, isForward);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
oPropertiesRequiredObjectAn object which contains the search string.
oProperties.searchStringRequiredstringThe search string.
oProperties.matchCaseOptionalbooleantrueCase sensitive or not.
isForwardOptionalbooleantrueSearch direction.

Returns

boolean

Example

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