Platforms to show: All Mac Windows Linux Cross-Platform
NSTextTabMBS class
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | Cocoa Text | MBS MacCocoa Plugin | 12.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSTextTab objects are most frequently used with the Application Kit's text system and with NSRulerView and NSRulerMarker objects. See the appropriate class specifications for more information on these uses.
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.
- 5 properties
- property alignment as Integer
- property Handle as Integer
- property location as Double
- property options as Dictionary
- property tabStopType as Integer
- 4 methods
- method Constructor
- method Constructor(alignment as Integer, location as Double, options as dictionary)
- method Constructor(type as Integer, location as Double)
- method copy as NSTextTabMBS
- 4 constants
Tab Stop Types
| Constant | Value | Description |
|---|---|---|
| NSCenterTabStopType | 2 |
A center-aligned tab stop. |
| NSDecimalTabStopType | 3 |
Aligns columns of numbers by the decimal point. |
| NSLeftTabStopType | 0 |
A left-aligned tab stop. |
| NSRightTabStopType | 1 |
A right-aligned tab stop. |
This class has no subclasses.
Blog Entries
Some methods using this class:
- NSMutableParagraphStyleMBS.addTabStop(tabstop as NSTextTabMBS)
- NSMutableParagraphStyleMBS.removeTabStop(tabstop as NSTextTabMBS)
- NSMutableParagraphStyleMBS.setTabStops(tabStops() as NSTextTabMBS)
- NSParagraphStyleMBS.tabStops as NSTextTabMBS()
Some properties using this class:
- NSParagraphStyleMBS.firstTabStop as NSTextTabMBS
Some examples using this class:
Some related classes:
- class NSAttributedStringMBS
- class NSMutableAttributedStringMBS
- class NSMutableParagraphStyleMBS
- class NSParagraphStyleMBS
- class NSRangeMBS
- class NSTextViewMBS
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSTextTableMBS - NSTextViewMBS