VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging Namespace / WebTextRegionJS type / searchText Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
searchText Method
In This Topic
Searches the text in this text region.
Syntax
var instance = new Vintasoft.Imaging.WebTextRegionJS(textContent, selectionRegions, subRegions, symbols, trasfromFromDipSpace);

var value; // Type: object[]

// Parameters
var regExp; // Type: object

value = instance.searchText(regExp);

Parameters

regExp
Regular expression.

Return Value

Array that contains the search results. Each object contains:
  • region (object): WebTextRegionJS object, that include search result.
  • context (string): The line text that contains found region.
  • position (number): The position of the beginning of the found region in the line.
Exceptions
ExceptionDescription
Thrown if argument has wrong type.
Browser Compatibility
56+
45+
11
See Also