Adds an attribute with the given name and value to the characters in the specified range.
Original signature is '- (void)addAttribute:(NSString *)name value:(id)value range:(NSRange)aRange'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
Parameters
- name (NSString)
- A string specifying the attribute name. Attribute keys can be supplied by another framework or can be custom ones you define. For information about where to find the system-supplied attribute keys, see the overview section in NSAttributedString Class Reference.
- value (Id)
- The attribute value associated with name.
- aRange (NSRange)
- The range of characters to which the specified attribute/value pair applies.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)