/ LJCPHPCodeDoc / LJCTextBuilderLib / LJCTextBuilder / AddIndent


Parameters
increment - _ParamSummary_

Returns

The current indent count.

Syntax

JavaScript
AddIndent(increment = 1)

Changes the IndentCount by the provided value.

Example

JavaScript/th>
// Changes the IndentCount by the provided value.
AddIndent()
{
  const tb = new LJCTextBuilder();

  // Example Method:
  tb.AddIndent(2);
  const result = tb.GetText("This is indented text.");

  // result:
  // "    This is indented text."
}

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