Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  string  >  ToNL(string)
string class : ToNL(string) method

Description

Gets a new string replaced the specified string with a newline.

Syntax

stringInstance.ToNL(string replaced)

Arguments

ClassNameDescription
stringreplacedString to replace.

Return value

ClassDescription
stringA new string replaced the specified string with a newline.

Sample code

1:

string str = "aaa@bbb";

2:

string newString = str.ToNL("@"); // The result (newString) is "aaa↵bbb".

Notes

This method is added in Ver 1.1.1.0.

Links for reference

None

Copyright © Rice All rights reserved.