Table of Contents

Method ReplaceAll

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

ReplaceAll(string, string, out int)

Replaces all occurrences of given text within class text content by specified replaceWith string.

public virtual 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)

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

public virtual 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)

Replaces all occurrences of given text within class text content by specified replaceWith string.

public virtual 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)

Replaces all occurrences of given text within class text content by specified replaceWith string.

public virtual 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.