Function

CTLineGetStringRange

Gets the range of characters that originally spawned the glyphs in the line.

Declaration

CFRange CTLineGetStringRange(CTLineRef line);

Parameters

line

The line from which to obtain the string range.

Return Value

A CFRange structure that contains the range over the backing store string that spawned the glyphs, or if the function fails for any reason, an empty range.

See Also

Getting Line Data

CTLineGetGlyphCount

Returns the total glyph count for the line object.

CTLineGetGlyphRuns

Returns the array of glyph runs that make up the line object.

CTLineGetPenOffsetForFlush

Gets the pen offset required to draw flush text.