Method Find
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v9.dll
Find(IStringList, Hashtable, string, SearchOptions, Regex, ref Point, out int, out Match, string, bool)
Searches for given text.
public static bool Find(IStringList list, Hashtable delimTable, string s, SearchOptions options, Regex expression, ref Point position, out int len, out Match match, string lineTerminator, bool searchHiddenLines = false)
Parameters
list
IStringListIStringList
collection to find from.delimTable
HashtableSpecifies collection of characters that is used as word delimiters.
s
stringThe text to locate in the collection.
options
SearchOptionsSpecifies parameters of search.
expression
RegexRepresents a regular expression to find text.
position
PointPosition in strings collection to start search.
len
intReceives length of the found text.
match
MatchReceives match if regular expression search successful.
lineTerminator
stringSpecifies line terminator.
searchHiddenLines
boolSpecifies 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
s
stringThe text to locate in the collection.
options
SearchOptionsSpecifies parameters of search.
expression
RegexRepresents a regular expression to find text.
position
PointPosition in strings collection to start search.
len
intReceives length of the found text.
match
MatchReceives match if regular expression search successful.
searchHiddenLines
boolSpecifies 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.