[]
Finds a row that contains a specified value in a given column using a RegularExpression.
public virtual int FindRowRegex(string pattern, int rowStart, int col, bool wrap)
Type | Name | Description |
---|---|---|
string | pattern | The regular expression pattern to match. |
int | rowStart | Index of the row where the search should start. |
int | col | Column that contains the data to be searched. |
bool | wrap | Whether the search should stop at the bottom of the grid or wrap around and restart from the first scrollable row. |
Type | Description |
---|---|
int | The index of the row that matches the pattern, or -1 if no matches were found. |
The pattern
parameter specifies a regular expression pattern
expressed in the usual Regex syntax.
The regular expression syntax supports character classes, ranges, repeat counts,
alternate matches, and more. Please refer to the .NET documentation for details and examples.