Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSParagraphStyleMBS class.

Alignment Modes

NSParagraphStyleMBS.NSCenterTextAlignment as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Text MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the text alignment constants for the alignment property.

Visually centered

NSParagraphStyleMBS.NSRightTextAlignment as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Text MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the text alignment constants for the alignment property.

Visually right aligned

NSParagraphStyleMBS.defaultParagraphStyle as NSParagraphStyleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Text MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the default paragraph style.
Example
dim n as NSParagraphStyleMBS = NSParagraphStyleMBS.defaultParagraphStyle
MsgBox str(n.alignment) // 4 = natural

The default paragraph style has the following default values:

SubattributeDefault Value
AlignmentNSNaturalTextAlignment
Tab stops12 left-aligned tabs, spaced by 28.0 points
Line break modeNSLineBreakByWordWrapping
All others0.0

NSParagraphStyleMBS.defaultWritingDirectionForLanguage(languageName as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Text MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the default writing direction for the specified language.

languageName: The language specified in ISO language region format. Can be nil to return a default writing direction derived from the user's defaults database.

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...