/ LJCPHPCodeDoc / LJCTextBuilderLib / LJCTextBuilder / AddText


Parameters
text - The add text.

Returns

The added text.

Syntax

JavaScript
AddText(text)

Appends text without modification.

Remarks

AddText() is an "Append" method. It adds the unmodified text to the builder.

Example

JavaScript
// Appends text without modification.
AddText()
{
  const tb = new LJCTextBuilder();

  // Example Method:
  tb.AddText("This is some appended text.");

  const result = tb.ToString();

  // result:
  // "This is some appended text."
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.