CFAttributedStringSetAttribute(_:_:_:_:)
Sets the value of a single attribute over the specified range.
Declaration
func CFAttributedStringSetAttribute(_ aStr: CFMutableAttributedString!, _ range: CFRange, _ attrName: CFString!, _ value: CFTypeRef!)Parameters
- aStr:
The mutable attributed string to modify.
- range:
The range of
aStrover to which the new attributes apply.rangemust not exceed the bounds ofaStr. - attrName:
The name of the attribute whose value to set.
- value:
The value of the attribute
attrNameto apply overrange. This value may not beNULL. If you want to remove an attribute, use Cfattributedstringremoveattribute(_:_:_:).