Table of Contents

Method Find

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

Find(ISearch, string, SearchOptions, Regex)

Searches for all occurrences of given text by specified parameters.

public virtual bool Find(ISearch search, string text, SearchOptions options, Regex expression)

Parameters

search ISearch

ISearch where search starts.

text string

Text to find.

options SearchOptions

Search options.

expression Regex

Regular expression to find text.

Returns

bool

True if succeed; otherwise false.

Find(string, SearchOptions, Regex, ref Point, out int, out Match)

Searches for all occurrences of given text by specified parameters.

public bool Find(string s, SearchOptions options, Regex expression, ref Point position, out int len, out Match match)

Parameters

s string

Text to find.

options SearchOptions

Search options.

expression Regex

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.

Returns

bool

True if search succeed; otherwise false.

Find(string, SearchOptions, Regex, IList<IRange>)

Searches for all occurrences of given text by specified parameters.

public bool Find(string text, SearchOptions options, Regex expression, IList<IRange> ranges)

Parameters

text string

Text to find.

options SearchOptions

Search options.

expression Regex

Regular expression to find text.

ranges IList<IRange>

Represents list of ranges determining search results.

Returns

bool

True if search succeed; otherwise false.