Skip to content

TextAlign

Inherits: Enum

The horizontal alignment of text within an input box.

Properties

  • CENTER

    Align the text in the center of the container.

  • END

    Align the text on the trailing edge of the container.

  • JUSTIFY

    Stretch lines of text that end with a soft line break to fill the width of the

  • LEFT

    Align the text on the left edge of the container.

  • RIGHT

    Align the text on the right edge of the container.

  • START

    Align the text on the leading edge of the container.

Properties#

CENTER = 'center' class-attribute instance-attribute #

Align the text in the center of the container.

END = 'end' class-attribute instance-attribute #

Align the text on the trailing edge of the container.

JUSTIFY = 'justify' class-attribute instance-attribute #

Stretch lines of text that end with a soft line break to fill the width of the container.

LEFT = 'left' class-attribute instance-attribute #

Align the text on the left edge of the container.

RIGHT = 'right' class-attribute instance-attribute #

Align the text on the right edge of the container.

START = 'start' class-attribute instance-attribute #

Align the text on the leading edge of the container.