Parameters
text - The text value.
Returns
The wrapped string.
Syntax
| JavaScript |
|
GetWrapped(text)
|
Appends added text and new wrapped line.
Remarks
Creates new wrapped line if combined line > LineLimit.
Example
| JavaScript |
// Appends added text and new wrapped line.
GetWrapped()
{
const tb = new LJCTextBuilder();
let text = "This is some wrapped text because it is longer than";
text += " 80 characters and then some more just as an example.";
// Example Method:
const result = tb.GetWrapped(text);
// result:
// "This is some wrapped text because it is longer than"
// " 80 characters and then some"
// " more just as an example."
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.