Method Find
Find(string)
Searches for given text within the control's contents.
public virtual bool Find(string text)
Parameters
textstringText to find.
Returns
- bool
True if search succeed; otherwise false.
Find(string, SearchOptions)
Searches for given text within the control's contents with specified options.
public virtual bool Find(string text, SearchOptions options)
Parameters
textstringText to find.
optionsSearchOptionsRepresents options to search text.
Returns
- bool
True if search succeed; otherwise false.
Find(string, SearchOptions, Regex)
Searches for given text within the control's contents with specified options using specified regular expression.
public virtual bool Find(string text, SearchOptions options, Regex expression)
Parameters
textstringText to find.
optionsSearchOptionsRepresents options to search text.
expressionRegexRepresents a regular expression to find text.
Returns
- bool
True if search succeed; otherwise false.
Find(string, SearchOptions, Regex, bool, bool)
Searches for all occurrences of given text within the control's contents with specified options using specified regular expression.
public virtual bool Find(string text, SearchOptions options, Regex expression, bool firstSearch, bool silent)
Parameters
textstringText to find.
optionsSearchOptionsRepresents options to search text.
expressionRegexRepresents a regular expression to find text.
firstSearchboolSpecifies if search is performed the first time.
silentboolDetermines if no visual feedback is required.
Returns
- bool
True if search succeed; otherwise false.
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.
public virtual bool Find(string text, SearchOptions options, Regex expression, IList<IRange> ranges)
Parameters
textstringText to find.
optionsSearchOptionsRepresents options to search text.
expressionRegexRepresents a regular expression to find text.
rangesIList<IRange>Represents list of ranges determining search results.
Returns
- bool
True if search succeed; otherwise false.
Find(string, SearchOptions, Regex, ref Point, out int, out Match, bool)
Searches for given text within the control's text content.
public virtual bool Find(string s, SearchOptions options, Regex expression, ref Point position, out int len, out Match match, bool searchHiddenLines = false)
Parameters
sstringThe text to locate in the collection.
optionsSearchOptionsSpecifies parameters of search.
expressionRegexRepresents a regular expression to find text.
positionPointPosition in strings collection to start search.
lenintReceives length of the found text.
matchMatchReceives match if regular expression search successful.
searchHiddenLinesboolSpecifies if hidden lines should be processed.
Returns
- bool
True if search succeed; otherwise false.
Remarks
If search succeed position parameter receive location of the found text.