Instance Method

alignment()

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

Declaration

func alignment() -> NSTextAlignment

Return Value

The horizontal alignment of text within the bounds of the annotation. Supported values are NSLeftTextAlignment, NSRightTextAlignment, and NSCenterTextAlignment.

See Also

Managing Text Alignment

func setAlignment(NSTextAlignment)

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

Deprecated