NSMutableAttributedString.AddAttribute(NSString, NSObject, NSRange) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an attribute and its value to the specified range of characters in the string.
[Foundation.Export("addAttribute:value:range:")]
public virtual void AddAttribute (Foundation.NSString attributeName, Foundation.NSObject value, Foundation.NSRange range);
abstract member AddAttribute : Foundation.NSString * Foundation.NSObject * Foundation.NSRange -> unit
override this.AddAttribute : Foundation.NSString * Foundation.NSObject * Foundation.NSRange -> unit
Parameters
- attributeName
- NSString
Attribute name (for example, "color")
- value
- NSObject
Attribute value (for example "blue").
- range
- NSRange
Range to which the attribute will be applied.
- Attributes
Remarks
The attributeName
should be a property in UIStringAttributeKey.