Platforms to show: All Mac Windows Linux Cross-Platform

Back to CTParagraphStyleMBS class.

CTParagraphStyleMBS.Available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether this class is available.

Returns true in OS X v10.5 and later.

CTParagraphStyleMBS.Create as CTParagraphStyleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an immutable paragraph style.

Returns a valid reference to an immutable CTParagraphStyle object, If the paragraph style creation was successful; otherwise, nil.

Using this function is the easiest and most efficient way to create a paragraph style. Paragraph styles should be kept immutable for totally lock-free operation. If an invalid paragraph style setting specifier is passed into the settings parameter, nothing bad will happen, but you will be unable to query for this value. The reason is to allow backward compatibility with style setting specifiers that may be introduced in future versions.

Available in OS X v10.5 and later.

See also:

CTParagraphStyleMBS.Create(settings() as CTParagraphStyleSettingMBS) as CTParagraphStyleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an immutable paragraph style.

settings: The settings with which to preload the paragraph style.

Returns a valid reference to an immutable CTParagraphStyle object, If the paragraph style creation was successful; otherwise, nil.

Using this function is the easiest and most efficient way to create a paragraph style. Paragraph styles should be kept immutable for totally lock-free operation. If an invalid paragraph style setting specifier is passed into the settings parameter, nothing bad will happen, but you will be unable to query for this value. The reason is to allow backward compatibility with style setting specifiers that may be introduced in future versions.

Available in OS X v10.5 and later.

See also:

CTParagraphStyleMBS.CreateWithAlignment(Alignment as Integer) as CTParagraphStyleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreText MBS MacCG Plugin 15.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an immutable paragraph style.
Example
dim a as Integer
dim t as CTParagraphStyleMBS

a = CTParagraphStyleMBS.kCTTextAlignmentRight
t = CTParagraphStyleMBS.CreateWithAlignment(a)

MsgBox str(T.Alignment) // shows 1

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


The biggest plugin in space...