Function

CFAttributedStringRemoveAttribute

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

Declaration

void CFAttributedStringRemoveAttribute(CFMutableAttributedStringRef aStr, CFRange range, CFStringRef attrName);

Parameters

str

The mutable attributed string to modify.

range

The range of aStr from which to remove the specified attribute. range must not exceed the bounds of aStr.

attrName

The name of the attribute to remove.

Discussion

It is not an error of the specified attribute does not exist over the given 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.

CFAttributedStringReplaceString

Modifies the string of an attributed string.

CFAttributedStringReplaceAttributedString

Replaces the attributed substring over a range with another 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software