Platforms to show: All Mac Windows Linux Cross-Platform

Back to CTFrameMBS class.

CTFrameMBS.FrameAttributes as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the frame attributes used to create the frame.

Returns a reference to a CFDictionary object containing the frame attributes that were used to create the frame, or, if the frame was created without any frame attributes, nil.

You can create a frame with an attributes dictionary to control various aspects of the framing process. These attributes are different from the ones used to create an attributed string.
(Read only property)

CTFrameMBS.Path as CGPathMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the path used to create the frame.

(Read only property)

CTFrameMBS.StringRangeLength as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the range of characters originally requested to fill the frame.

(Read only property)

CTFrameMBS.StringRangeLocation as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the range of characters originally requested to fill the frame.

(Read only property)

CTFrameMBS.VisibleStringRangeLength as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the range of characters that actually fit in the frame.

This function can be used to cascade frames, because it returns the range of characters that can be seen in the frame. The next frame would start where this frame ends.
(Read only property)

Some examples using this property:

CTFrameMBS.VisibleStringRangeLocation as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the range of characters that actually fit in the frame.

This function can be used to cascade frames, because it returns the range of characters that can be seen in the frame. The next frame would start where this frame ends.
(Read only property)

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


The biggest plugin in space...