Edit

Share via


OpenTypeMethods.Replace(Object, Object, Object) Method

Definition

Replaces one substring with a second substring in a target string.

public:
 static System::Object ^ Replace(System::Object ^ targetString, System::Object ^ substring, System::Object ^ newString);
public static object Replace (object targetString, object substring, object newString);
static member Replace : obj * obj * obj -> obj
Public Shared Function Replace (targetString As Object, substring As Object, newString As Object) As Object

Parameters

targetString
Object

The string with the substring to replace.

substring
Object

The substring to be replaced.

newString
Object

The new substring.

Returns

A new string with the substring replaced with the new substring.

Applies to