OpenTypeMethods.Replace(Object, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.