Partager via


TextBuffer.matchPos Method

Definition

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

public:
 virtual int matchPos();
public virtual int matchPos ();
abstract member matchPos : unit -> int
override this.matchPos : unit -> int
Public Overridable Function matchPos () As Integer

Returns

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).

Applies to