"alignment"

Changes the alignment at the cursor position or the alignment of the selected text.

Synopsis

shape.alignment(string a);

Parameters

Parameter Description
shape Name of the object
a

The alignment:

"AlignLeft" = left-aligned

"AlignRight" = right-aligned

"AlignCenter" = centered

"AlignJustify" = justified

Description

Changes the alignment at cursor position or the alignment of the selected text.

Example

Changes the alignment to "AlignCenter" (centered).

main()
{
  TEXT_EDIT1.alignment("AlignCenter");
}

Assignment

TextEdit