MonobjcMonobjc Documented Class Library
AddAttributeValueRange Method (name, value, aRange)
NamespacesMonobjc.FoundationNSMutableAttributedStringAddAttributeValueRange(NSString, Id, NSRange)

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 BasicVisual C++
public virtual void AddAttributeValueRange(
	NSString name,
	Id value,
	NSRange aRange
)
Public Overridable Sub AddAttributeValueRange ( _
	name As NSString, _
	value As Id, _
	aRange As NSRange _
)
public:
virtual void AddAttributeValueRange(
	NSString^ name, 
	Id^ value, 
	NSRange aRange
)
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)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)