Creates a truncated line from an existing line.
- iOS 3.2+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Text
The line from which to create a truncated line.
The width at which truncation begins. The line is truncated if its width is greater than the width passed in this parameter.
The type of truncation to perform if needed. See
CTLinefor possible values.
This token is added at the point where truncation took place, to indicate that the line was truncated. Usually, the truncation token is the ellipsis character (
U+2026). If this parameter is set to
NULL, then no truncation token is used and the line is simply cut off.
A reference to a truncated CTLine object if the call was successful; otherwise,
The line specified in
truncation should have a width less than the width specified by the
width parameter. If the width of the line specified in
truncation is greater than
width and truncation is needed, the function returns