A tab in an NSParagraph
object, storing an alignment type and location.
SDKs
- iOS 7.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Frameworks
- UIKit
- App
Kit
Declaration
class NSTextTab : NSObject
Overview
NSText
objects are most frequently used with the TextKit system and with NSRuler
and NSRuler
objects.
The text system supports four alignment types: left, center, right, and decimal (based on the decimal separator character of the locale in effect). These alignment types are absolute, not based on the line sweep direction of text. For example, tabbed text is always positioned to the left of a right-aligned tab, whether the line sweep direction is left to right or right to left. A tab’s location, on the other hand, is relative to the back margin. A tab set at 1.5”, for example, is at 1.5” from the right in right to left text.