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, orNSLeftTextAlignment.
Discussion
The default alignment is NSLeftTextAlignment.