Changes the receiver's layout orientation and invalidates the contents.
SDK
- macOS 10.7+
Framework
- App
Kit
Declaration
func setLayoutOrientation(_ orientation: NSLayout Manager.Text Layout Orientation)
Parameters
theOrientation
The text layout orientation.
Discussion
Unlike other NSText
properties, this is not shared by sibling views. It also rotates the bounds 90 degrees, swaps horizontal and vertical bits of the autoresizing
mask, and reconfigures is
and is
properties accordingly. Also, if enclosing
returns non-nil
, it reconfigures the horizontal and vertical ruler views, the horizontal and vertical scrollers, and the frame.