Table of Contents

Method FindOrReplace

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

FindOrReplace(ISearch, string, string, SearchOptions, Regex)

Searches for first occurrence given text within content determined by ISearch object with specified options using specified regular expression and if succeed replaces it by specified string.

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

Parameters

search ISearch

ISearch object performs search.

text string

Text to find.

replaceWith string

Text to replace.

options SearchOptions

Represents options to search text.

expression Regex

Represents a regular expression to find text.

Returns

bool

True if succeed; otherwise false.