TextAlignment

public enum TextAlignment : Int

Specifies the horizontal text alignment.

  • Aligns the text to the left side of the line.

    Declaration

    Swift

    case left = 0
  • Aligns the text to the right side of the line.

    Declaration

    Swift

    case center = 1
  • Aligns the text to the center of the line.

    Declaration

    Swift

    case right = 2
  • Aligns the text to the left side of the line if its paragraph level is even.

    Declaration

    Swift

    case leading = 3
  • Aligns the text to the right side of the line if its paragraph level is even.

    Declaration

    Swift

    case trailing = 4