Table of Contents

Method Find

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.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 IStringList

IStringList collection to find from.

delimTable Hashtable

Specifies collection of characters that is used as word delimiters.

s string

The text to locate in the collection.

options SearchOptions

Specifies parameters of search.

expression Regex

Represents a regular expression to find text.

position Point

Position in strings collection to start search.

len int

Receives length of the found text.

match Match

Receives match if regular expression search successful.

lineTerminator string

Specifies line terminator.

searchHiddenLines bool

Specifies 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 string

The text to locate in the collection.

options SearchOptions

Specifies parameters of search.

expression Regex

Represents a regular expression to find text.

position Point

Position in strings collection to start search.

len int

Receives length of the found text.

match Match

Receives match if regular expression search successful.

searchHiddenLines bool

Specifies 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.