Table of Contents

Method Replace

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

Replace(string, string)

When implemented by a class, searches for the first occurrence of given text within the text content and if succeed replaces it by specified string.

bool Replace(string text, string replaceWith)

Parameters

text string

Text to find.

replaceWith string

Text to replace.

Returns

bool

True if succeed; otherwise false.

Replace(string, string, SearchOptions)

When implemented by a class, searches for first occurrence given text within the text content with specified options and if succeed replaces it by specified string.

bool Replace(string text, string replaceWith, SearchOptions options)

Parameters

text string

Text to find.

replaceWith string

Text to replace.

options SearchOptions

Represents options to search text.

Returns

bool

True if succeed; otherwise false.

Replace(string, string, SearchOptions, Regex)

When implemented by a class, searches for first occurrence given text within the text content with specified options using specified regular expression and if succeed replaces it by specified string.

bool Replace(string text, string replaceWith, SearchOptions options, Regex expression)

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.

Returns

bool

True if succeed; otherwise false.