setAlignment(_:)
Sets the horizontal alignment of text within the bounds of the annotation.
Declaration
func setAlignment(_ alignment: NSTextAlignment)Parameters
- alignment:
Send
NSLeftTextAlignment,NSRightTextAlignment, orNSCenterTextAlignmentto set the horizontal alignment of text within the bounds of the annotation.