Finds a text string. The search starts at the specified position.
<void> FormattedText.find(<String> text, <Number> start, [<FindOptions> options], <RequestNumberCallback> callback, [<ErrorCallback> errorCallback])
Parameter | Description |
---|---|
text | Specifies the text to search for. |
start | Specifies the text position where the search starts, beginning with 0. If this value is -1, the search begins at the current text input position. |
options | Optional. Specifies search options. It can be a combination of the Find |
callback | If the text searched for is found, the method receives the index (zero-based) of the first character of the search string. If the specified text is not found the method receives -1. |
error |
Optional. Is called when the operation failed with an error. |