Contents

setTextAlignment(_:)

Sets the alignment for all of the receiver’s editable text.

Declaration

func setTextAlignment(_ mode: NSTextAlignment)

Parameters

  • mode:

    The alignment can be one of the following constants: NSRightTextAlignment, NSCenterTextAlignment, or NSLeftTextAlignment.

Discussion

The default alignment is NSLeftTextAlignment.

See Also

Changing the Appearance of All the Entries