Find Method
Find(String)
Searches for given text within the control's contents.
Declaration
public virtual bool Find(string text)
Parameters
Type | Name | Description |
---|---|---|
String | text | Text to find. |
Returns
Type | Description |
---|---|
Boolean | True if search succeed; otherwise false. |
Implements
Find(String, SearchOptions)
Searches for given text within the control's contents with specified options.
Declaration
public virtual 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. |
Implements
Find(String, SearchOptions, Regex)
Searches for given text within the control's contents with specified options using specified regular expression.
Declaration
public virtual 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. |
Implements
Find(String, SearchOptions, Regex, IList<IRange>)
Searches for all occurrences of given text within the control's contents with specified options using specified regular expression.
Declaration
public virtual 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. |
Implements
Find(String, SearchOptions, Regex, Boolean, Boolean)
Searches for all occurrences of given text within the control's contents with specified options using specified regular expression.
Declaration
public virtual 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. |
Implements
Find(String, SearchOptions, Regex, ref Point, out Int32, out Match, Boolean)
Searches for given text within the control's text content.
Declaration
public virtual bool Find(string s, SearchOptions options, Regex expression, ref Point position, out int len, out Match match, bool searchHiddenLines = false)
Parameters
Type | Name | Description |
---|---|---|
String | s | The text to locate in the collection. |
SearchOptions | options | Specifies parameters of search. |
Regex | expression | Represents a regular expression to find text. |
Point | position | Position in strings collection to start search. |
Int32 | len | Receives length of the found text. |
Match | match | Receives match if regular expression search successful. |
Boolean | searchHiddenLines | Specifies if hidden lines should be processed. |
Returns
Type | Description |
---|---|
Boolean | True if search succeed; otherwise false. |
Implements
Remarks
If search succeed position parameter receive location of the found text.