Function

CFAttributedStringReplaceAttributedString

Replaces the attributed substring over a range with another attributed string.

Declaration

void CFAttributedStringReplaceAttributedString(CFMutableAttributedStringRef aStr, CFRange range, CFAttributedStringRef replacement);

Parameters

aStr

The mutable attributed string to modify.

range

The range of aStr to be modified. range must not specify characters outside the bounds of aStr.

replacement

The attributed string to replace the contents of aStr in range.

See Also

Modifying a CFMutableAttributedString

CFAttributedStringBeginEditing

Defers internal consistency-checking and coalescing for a mutable attributed string.

CFAttributedStringEndEditing

Re-enables internal consistency-checking and coalescing for a mutable attributed string.

CFAttributedStringGetMutableString

Gets as a mutable string the string for an attributed string.

CFAttributedStringRemoveAttribute

Removes the value of a single attribute over a specified range.

CFAttributedStringReplaceString

Modifies the string of an attributed string.

CFAttributedStringSetAttribute

Sets the value of a single attribute over the specified range.

CFAttributedStringSetAttributes

Sets the value of attributes of a mutable attributed string over a specified range.