Function

CFAttributedStringGetLength

Returns the length of the attributed string in characters.

Declaration

CFIndex CFAttributedStringGetLength(CFAttributedStringRef aStr);

Parameters

str

The attributed string to examine.

Return Value

The length of the attributed string in characters; this is the same as CFStringGetLength(CFAttributedStringGetString(aStr)).

See Also

Creating a CFAttributedString

CFAttributedStringCreate

Creates an attributed string with specified string and attributes.

CFAttributedStringCreateCopy

Creates an immutable copy of an attributed string.

CFAttributedStringCreateWithSubstring

Creates a sub-attributed string from the specified range.

CFAttributedStringGetString

Returns the string for an attributed string.