Table of Contents

Method ReplaceAll

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

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

Replaces all occurrences of given text found by specified parameters.

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

Parameters

search ISearch

ISearch where search starts.

text string

Text to find.

replaceWith string

Text to replace.

options SearchOptions

Search options.

expression Regex

Regular expression to find text.

count int

Number of replaced occurrences.

abort bool

Receives a boolean value indicating whether replace action aborted.

Returns

bool

True if succeed; otherwise false.