Table of Contents

Method ReplaceAll

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

ReplaceAll(ISearch, string, string, SearchOptions, Regex, out int, out bool)

Replaces all occurrences of given text within text content determined by ISearch object by specified replaceWith string.

public virtual bool ReplaceAll(ISearch search, string text, string replaceWith, SearchOptions options, Regex expression, out int count, out bool abort)

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.

count int

Number of replaced occurrences.

abort bool

Receives valueiIndicating whether replace action aborted.

Returns

bool

True if succeed; otherwise false.