TextAlignment

public enum TextAlignment : UInt32

The alignment of text to use in the DrawingContext.show(text:in:alignment:) method.

  • The text is aligned to left.

    Declaration

    Swift

    case left
  • The text is aligned to right.

    Declaration

    Swift

    case right
  • The text is aligned to center.

    Declaration

    Swift

    case center
  • Add spaces between the words to justify both left and right side.

    Declaration

    Swift

    case justify