Instance Method

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

func alignment() -> NSTextAlignment

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

Deprecated