Find Method
Find(String)
When implemented by a class, searches for given text within the control's contents.
Declaration
bool Find(string text)
Parameters
Type | Name | Description |
---|---|---|
String | text | Text to find. |
Returns
Type | Description |
---|---|
Boolean | True if search succeed; otherwise false. |
Find(String, SearchOptions)
When implemented by a class, searches for given text within the control's contents with specified options.
Declaration
bool Find(string text, SearchOptions options)
Parameters
Type | Name | Description |
---|---|---|
String | text | Text to find. |
SearchOptions | options | Represents options to search text. |
Returns
Type | Description |
---|---|
Boolean | True if search succeed; otherwise false. |
Find(String, SearchOptions, Regex)
When implemented by a class, searches for given text within the control's contents with specified options using specified regular expression.
Declaration
bool Find(string text, SearchOptions options, Regex expression)
Parameters
Type | Name | Description |
---|---|---|
String | text | Text to find. |
SearchOptions | options | Represents options to search text. |
Regex | expression | Represents a regular expression to find text. |
Returns
Type | Description |
---|---|
Boolean | True if search succeed; otherwise false. |
Find(String, SearchOptions, Regex, IList<IRange>)
When implemented by a class, searches for all occurrences of given text within the control's contents with specified options using specified regular expression.
Declaration
bool Find(string text, SearchOptions options, Regex expression, IList<IRange> ranges)
Parameters
Type | Name | Description |
---|---|---|
String | text | Text to find. |
SearchOptions | options | Represents options to search text. |
Regex | expression | Represents a regular expression to find text. |
IList<IRange> | ranges | Represents list of ranges determining search results. |
Returns
Type | Description |
---|---|
Boolean | True if search succeed; otherwise false. |
Find(String, SearchOptions, Regex, Boolean, Boolean)
When implemented by a class, searches for all occurrences of given text within the control's contents with specified options using specified regular expression.
Declaration
bool Find(string text, SearchOptions options, Regex expression, bool firstSearch, bool silent)
Parameters
Type | Name | Description |
---|---|---|
String | text | Text to find. |
SearchOptions | options | Represents options to search text. |
Regex | expression | Represents a regular expression to find text. |
Boolean | firstSearch | Specifies if search is performed the first time. |
Boolean | silent | Determines if no visual feedback is required. |
Returns
Type | Description |
---|---|
Boolean | True if search succeed; otherwise false. |