Table of Contents

TRichString.Replace Method

Overloads

TRichString.Replace(string, string)

Replaces all oldValue strings with newValue strings inside the RichString. (case sensitive)

Syntax

Unit: FlexCel.Core

function TRichString.Replace(const oldValue: string; const newValue: string): TRichString; overload;

Parameters

<-> Parameter Type Description
const oldValue string String to replace.
const newValue string String that will replace oldValue

Returns

A new TRichString with all oldValues replaced with newValues.

See also

TRichString.Replace(string, string, Boolean)

Replaces all oldValue strings with newValue strings inside the RichString.

Syntax

Unit: FlexCel.Core

function TRichString.Replace(oldValue: string; newValue: string; const CaseInsensitive: Boolean): TRichString; overload;

Parameters

<-> Parameter Type Description
oldValue string String to replace.
newValue string String that will replace oldValue
const CaseInsensitive Boolean If true, it will not take care of case for the search.

Returns

A new TRichString with all oldValues replaced with newValues.

See also