Foundation.NSMutableAttributedString.AddAttribute Method
Adds an attribute and its value to the specified range of characters in the string.

Syntax

[Foundation.Export("addAttribute:value:range:")]
public virtual void AddAttribute (NSString attributeName, NSObject value, NSRange range)

Parameters

attributeName
Attribute name (for example, "color")
value
Attribute value (for example "blue").
range
Range to which the attribute will be applied.

Remarks

The attributeName should be a property in UIKit.UIStringAttributeKey.

Requirements

Namespace: Foundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0