TXTextControl.IFormattedText.Find Method

Finds a text string.


public int Find(string text, int start, FindOptions options);
[Visual Basic]
Public Function Find(ByVal text As String, ByVal start As Integer, ByVal options As FindOptions) As Integer
Parameter Description

Specifies the text to search for.


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.


Specifies search options. It can be a combination of the FindOptions values.

Return Value

If the text searched for is found, the method returns the index (zero-based) of the first character of the search string. If the specified text is not found the method returns -1.

See Also