Instance Method

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, and NSCenterTextAlignment.

See Also

Managing Background Color, Alignment, and Rotation

func backgroundColor() -> NSColor!

Returns the background color of the annotation text field.

Deprecated
func setBackgroundColor(NSColor!)

Sets the background color of the annotation text field.

Deprecated
func alignment() -> NSTextAlignment

Returns the text alignment setting for the annotation.

Deprecated
func rotation() -> Int

Returns the rotation angle of the annotation text field in degrees.

Deprecated
func setRotation(Int32)

Sets the rotation angle of the annotation text field in degrees.

Deprecated