Method Find
Find(ISearch, string, SearchOptions, Regex)
Searches for all occurrences of given text within content determined by ISearch object with specified options using specified regular expression.
public virtual bool Find(ISearch search, string text, SearchOptions options, Regex expression)
Parameters
searchISearchISearchobject performs search.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, ref Point, out int, out Match)
Searches for all occurrences of given text within current ISearch object content with specified options using specified regular expression.
public bool Find(string s, SearchOptions options, Regex expression, ref Point position, out int len, out Match match)
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.
Returns
- bool
True if search succeed; otherwise false.
Find(string, SearchOptions, Regex, IList<IRange>)
Searches for all occurrences of given text within the current ISearch content with specified options using specified regular expression.
public 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.