/ LJCPHPCodeDoc / LJCTextBuilderLib / LJCTextBuilder / AddLine


Parameters
text - The add text.

Returns

The added text line.

Syntax

JavaScript
AddLine(text = null)

Appends a text line without modification.

Remarks

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

Example

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

  // Example Method:
  tb.AddLine("This is an appended line.");

  tb.AddText(":");
  const result = tb.ToString();

  // result:
  // "This is an appended line."
  // ":"
}

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