setAlignment(_:)
Sets the text alignment for the annotation.
Declaration
func setAlignment(_ alignment: NSTextAlignment)Parameters
- alignment:
The text-alignment value to be used for the annotation. Possible values are
NSLeftTextAlignment,NSRightTextAlignment, andNSCenterTextAlignment.