Method Find
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v10.dll
Find(IStringList, HashSet<char>, string, SearchOptions, Regex, ref Point, out int, out Match, string, bool)
Searches for given text.
public static bool Find(IStringList list, HashSet<char> delimTable, string s, SearchOptions options, Regex expression, ref Point position, out int len, out Match match, string lineTerminator, bool searchHiddenLines = false)
Parameters
listIStringListIStringListcollection to find from.delimTableHashSet<char>Specifies collection of characters that is used as word delimiters.
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.
lineTerminatorstringSpecifies line terminator.
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.
Find(string, SearchOptions, Regex, ref Point, out int, out Match, bool)
Searches for given text.
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.