Contents

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 aStr over to which the new attributes apply. range must not exceed the bounds of aStr.

  • attrName:

    The name of the attribute whose value to set.

  • value:

    The value of the attribute attrName to apply over range. This value may not be NULL. If you want to remove an attribute, use Cfattributedstringremoveattribute(_:_:_:).

See Also

Modifying a CFMutableAttributedString