Instance Method

alignment()

Returns the text alignment setting for the annotation.

Declaration

func alignment() -> NSTextAlignment

Return Value

The text alignment value for the annotation. Supported alignment 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 setAlignment(NSTextAlignment)

Sets the text alignment 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