Share via


TextBuffer.matchPos Method

Returns the character position of the first occurrence of the search string in the TextBuffer object.

Syntax

public int matchPos()

Run On

Called

Return Value

Type: int
The position at which the match is found; 0 (zero) if no match is found.

Remarks

This method is used as part of a text search (see the find method).

See Also

TextBuffer Class

TextBuffer.matchLen Method

TextBuffer.find Method