Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CTParagraphStyleMBS.Available as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Whether this class is available.
Notes: Returns true in OS X v10.5 and later.

Feedback, Comments & Corrections

CTParagraphStyleMBS.Create as CTParagraphStyleMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Creates an immutable paragraph style.
Notes:
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:

Feedback, Comments & Corrections

CTParagraphStyleMBS.Create(settings() as CTParagraphStyleSettingMBS) as CTParagraphStyleMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreText MBS MacCG Plugin 14.2 Yes No No Yes, macOS only No
Function: Creates an immutable paragraph style.
Notes:
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:

Feedback, Comments & Corrections

CTParagraphStyleMBS.CreateWithAlignment(Alignment as Integer) as CTParagraphStyleMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreText MBS MacCG Plugin 15.1 Yes No No Yes, macOS only No
Function: 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

Feedback, Comments & Corrections

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





Links
MBS Xojo blog