Contents

setAlignment(_:)

Sets the horizontal alignment of text within the bounds of the annotation.

Declaration

func setAlignment(_ alignment: NSTextAlignment)

Parameters

  • alignment:

    Send NSLeftTextAlignment, NSRightTextAlignment, or NSCenterTextAlignment to set the horizontal alignment of text within the bounds of the annotation.

See Also

Managing Text Alignment