Table of Contents

Method ReplaceAll

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

ReplaceAll(string, string, out int)

When implemented by a class, replaces all occurrences of given text within class text content by specified replaceWith string.

bool ReplaceAll(string text, string replaceWith, out int count)

Parameters

text string

Text to find.

replaceWith string

Text to replace.

count int

Number of replaced occurrences.

Returns

bool

True if succeed; otherwise false.

ReplaceAll(string, string, SearchOptions, out int)

When implemented by a class, replaces all occurrences of given text within text content by specified replaceWith string.

bool ReplaceAll(string text, string replaceWith, SearchOptions options, out int count)

Parameters

text string

Text to find.

replaceWith string

Text to replace.

options SearchOptions

Represents options to search text.

count int

Number of replaced occurrences.

Returns

bool

True if succeed; otherwise false.

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

When implemented by a class, replaces all occurrences of given text within class text content by specified replaceWith string.

bool ReplaceAll(string text, string replaceWith, SearchOptions options, Regex expression, out int count)

Parameters

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.

Returns

bool

True if succeed; otherwise false.

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

When implemented by a class, replaces all occurrences of given text within class text content by specified replaceWith string.

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

Parameters

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

Indicates whether replace action aborted.

Returns

bool

True if succeed; otherwise false.